From 4b8604dfbc46d3923d9506951560a0918207b4a6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 28 Feb 2013 14:07:22 +0100 Subject: [PATCH] use dup'ed string in fw3_parse_monthdays() --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index ff9a964..a35247f 100644 --- a/options.c +++ b/options.c @@ -636,7 +636,7 @@ fw3_parse_monthdays(void *ptr, const char *val) if (!(s = strdup(val))) return false; - for (p = strtok((char *)val, " \t"); p; p = strtok(NULL, " \t")) + for (p = strtok(s, " \t"); p; p = strtok(NULL, " \t")) { d = strtoul(p, &p, 10); -- 2.25.1