diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-03-25 15:49:40 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-03-25 15:49:40 +0000 |
commit | c2d0b62cc1af8ba3f2ae63ee64c18c1234c6c89e (patch) | |
tree | 4cea6ff17318e0943702d1a215efcbe2c8f4368d | |
parent | 09a0eb478b229261920c155324c3a5cb2f14bc78 (diff) | |
download | coreboot-c2d0b62cc1af8ba3f2ae63ee64c18c1234c6c89e.tar.xz |
Copy argument of -include as it's modified later.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5290 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | util/romcc/romcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index f00f93f326..aee86968af 100644 --- a/util/romcc/romcc.c +++ b/util/romcc/romcc.c @@ -25154,7 +25154,7 @@ int main(int argc, char **argv) } argv++; argc--; - include_filelist->filename = argv[1]; + include_filelist->filename = strdup(argv[1]); include_filelist->next = old_head; result = 0; } |