From c2d0b62cc1af8ba3f2ae63ee64c18c1234c6c89e Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 25 Mar 2010 15:49:40 +0000 Subject: Copy argument of -include as it's modified later. Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5290 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/romcc/romcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index f00f93f..aee8696 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; } -- cgit v1.1