mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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);
|
guestfs_int_external_command_failed (g, r, "qemu-img", cmd_stdout);
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
debug (g, cmd_stdout);
|
debug (g, "%s", cmd_stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user