]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/check-qjson.c
migration: use migration_is_active to represent active state
[mirror_qemu.git] / tests / check-qjson.c
index fa2afccb0a24985771e535a646fc8b9e1cbfca68..07a773e6530b561f2ecac7e127ccb8fd690ad740 100644 (file)
@@ -767,7 +767,7 @@ static void utf8_string(void)
                     if (*end == ' ') {
                         end++;
                     }
-                    in = strndup(tail, end - tail);
+                    in = g_strndup(tail, end - tail);
                     str = from_json_str(in, j, NULL);
                     g_assert(!str);
                     g_free(in);