From d87d0978e2aeaa73f219d0d0a8b4eb5c73027551 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 9 Nov 2006 09:37:10 +1100 Subject: Strdup the bitmap file name found in the config file Otherwise we quickly lose it... --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index d251fbf..38e911a 100644 --- a/config.c +++ b/config.c @@ -464,7 +464,7 @@ void arrayline(char *line) fprintf(stderr, Name ": only specify bitmap file once. %s ignored\n", w); else - mis.bitmap_file = w+7; + mis.bitmap_file = strdup(w+7); } else if (strncasecmp(w, "devices=", 8 ) == 0 ) { if (mis.devices) -- cgit