aboutsummaryrefslogtreecommitdiff
path: root/qemu-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-log.c')
-rw-r--r--qemu-log.c2
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;