From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH v4 1/4] rom loader: use qemu_strdup.
Date: Mon, 26 Oct 2009 12:18:24 +0100 [thread overview]
Message-ID: <1256555907-21505-2-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1256555907-21505-1-git-send-email-kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/loader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/loader.c b/hw/loader.c
index 7aa1a67..6baafa8 100644
--- 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);
--
1.6.2.5
next prev parent reply other threads:[~2009-10-26 11:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 11:18 [Qemu-devel] [PATCH v4 0/4] more rom loader patches Gerd Hoffmann
2009-10-26 11:18 ` Gerd Hoffmann [this message]
2009-10-26 11:18 ` [Qemu-devel] [PATCH v4 2/4] rom loader: make vga+rom loading configurable Gerd Hoffmann
2009-10-26 11:18 ` [Qemu-devel] [PATCH v4 3/4] vga roms: move loading from pc.c to vga drivers Gerd Hoffmann
2009-10-26 11:18 ` [Qemu-devel] [PATCH v4 4/4] use rom loader for pc bios Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1256555907-21505-2-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).