lib/create.c: Fix string passed to printf-like function

create.c: In function 'disk_create_qcow2':
  create.c:372:5: error: format not a string literal and no format arguments [-Werror=format-security]
    372 |     debug (g, cmd_stdout);
        |     ^~~~~

Fixes: commit 606aa1d182
This commit is contained in:
Richard W.M. Jones
2025-05-22 09:48:14 +01:00
parent 606aa1d182
commit 833e5e63b3

View File

@@ -369,7 +369,7 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size,
guestfs_int_external_command_failed (g, r, "qemu-img", cmd_stdout);
return -1;
} else {
debug (g, cmd_stdout);
debug (g, "%s", cmd_stdout);
}
return 0;