OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c28271
)
rom loader: use qemu_strdup.
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 26 Oct 2009 11:18:24 +0000
(12:18 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 30 Oct 2009 13:39:29 +0000
(08:39 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/loader.c
patch
|
blob
|
history
diff --git
a/hw/loader.c
b/hw/loader.c
index
7aa1a67
..
6baafa8
100644
(file)
--- a/
hw/loader.c
+++ b/
hw/loader.c
@@
-559,7
+559,7
@@
int rom_add_file(const char *file,
rom->name = qemu_strdup(file);
rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name);
if (rom->path == NULL) {
- rom->path = strdup(file);
+ rom->path =
qemu_
strdup(file);
}
fd = open(rom->path, O_RDONLY | O_BINARY);