projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
606017d
)
qemu-log: Fix unchecked strdup() by converting to g_strdup()
author
Markus Armbruster
<armbru@redhat.com>
Tue, 22 Jan 2013 10:08:02 +0000
(11:08 +0100)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Wed, 30 Jan 2013 10:14:46 +0000
(11:14 +0100)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-log.c
patch
|
blob
|
history
diff --git
a/qemu-log.c
b/qemu-log.c
index b655b305eab9ba907a7622be2ccbcb16944a15ea..64a1b886dcf0075be806ea2acd893849106f58ef 100644
(file)
--- 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;