Author: oxygene Date: Thu Mar 25 16:49:40 2010 New Revision: 5290 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5290
Log: 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
Modified: trunk/util/romcc/romcc.c
Modified: trunk/util/romcc/romcc.c ============================================================================== --- trunk/util/romcc/romcc.c Thu Mar 25 16:25:15 2010 (r5289) +++ trunk/util/romcc/romcc.c Thu Mar 25 16:49:40 2010 (r5290) @@ -25154,7 +25154,7 @@ } argv++; argc--; - include_filelist->filename = argv[1]; + include_filelist->filename = strdup(argv[1]); include_filelist->next = old_head; result = 0; }