projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd3bea3
)
virtfs-proxy-helper: Fix unchecked strdup() by conv. to g_strdup()
author
Markus Armbruster
<armbru@redhat.com>
Tue, 22 Jan 2013 10:08:01 +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>
fsdev/virtfs-proxy-helper.c
patch
|
blob
|
history
diff --git
a/fsdev/virtfs-proxy-helper.c
b/fsdev/virtfs-proxy-helper.c
index 6b9afd32d59ff8e1c8032babeb4a47be47502171..36f66163b2d03ce2bf33e1567769d1ca44d81f49 100644
(file)
--- a/
fsdev/virtfs-proxy-helper.c
+++ b/
fsdev/virtfs-proxy-helper.c
@@
-1039,7
+1039,7
@@
int main(int argc, char **argv)
}
switch (c) {
case 'p':
- rpath = strdup(optarg);
+ rpath =
g_
strdup(optarg);
break;
case 'n':
is_daemon = false;
@@
-1048,7
+1048,7
@@
int main(int argc, char **argv)
sock = atoi(optarg);
break;
case 's':
- sock_name = strdup(optarg);
+ sock_name =
g_
strdup(optarg);
break;
case 'u':
own_u = atoi(optarg);