Copy argument of -include as it's modified later.
authorPatrick Georgi <patrick.georgi@coresystems.de>
Thu, 25 Mar 2010 15:49:40 +0000 (15:49 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Thu, 25 Mar 2010 15:49:40 +0000 (15:49 +0000)
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

util/romcc/romcc.c

index f00f93f326a2abca5ee998f8145d63ead84afb15..aee86968af766e8bcff77860d0da8df94cdb49f6 100644 (file)
@@ -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;
                        }