diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-01-22 11:08:02 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-01-30 11:14:46 +0100 |
commit | 636e0f27c6675839dc43d4c7613dfefc222234eb (patch) | |
tree | 10fa90d799ce9501cad2ad9f30a16639fd1466fc /qemu-log.c | |
parent | 606017de2f254f847a009af770f8babc9a9fcadc (diff) | |
download | qemu-636e0f27c6675839dc43d4c7613dfefc222234eb.tar.gz qemu-636e0f27c6675839dc43d4c7613dfefc222234eb.tar.bz2 qemu-636e0f27c6675839dc43d4c7613dfefc222234eb.zip |
qemu-log: Fix unchecked strdup() by converting to g_strdup()
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-log.c')
-rw-r--r-- | qemu-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-log.c b/qemu-log.c index b655b305ea..64a1b886dc 100644 --- a/qemu-log.c +++ b/qemu-log.c @@ -84,7 +84,7 @@ void qemu_set_log(int log_flags, bool use_own_buffers) void cpu_set_log_filename(const char *filename) { - logfilename = strdup(filename); + logfilename = g_strdup(filename); if (qemu_logfile) { fclose(qemu_logfile); qemu_logfile = NULL; |