aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-03-25 15:49:40 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-03-25 15:49:40 +0000
commitc2d0b62cc1af8ba3f2ae63ee64c18c1234c6c89e (patch)
tree4cea6ff17318e0943702d1a215efcbe2c8f4368d /util
parent09a0eb478b229261920c155324c3a5cb2f14bc78 (diff)
downloadcoreboot-c2d0b62cc1af8ba3f2ae63ee64c18c1234c6c89e.tar.gz
coreboot-c2d0b62cc1af8ba3f2ae63ee64c18c1234c6c89e.tar.xz
coreboot-c2d0b62cc1af8ba3f2ae63ee64c18c1234c6c89e.zip
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
Diffstat (limited to 'util')
-rw-r--r--util/romcc/romcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c
index f00f93f32..aee86968a 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;
}