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