1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Description: fix segfault in parse_opt
Bug-Debian: https://bugs.debian.org/322993
Author: Vincent Crevot <vcrevot@retroject.net>
--- ccze-0.2.1.orig/src/ccze.c
+++ ccze-0.2.1/src/ccze.c
@@ -209,7 +209,7 @@
}
break;
case 'a':
- plugin = strtok (optarg, "=");
+ plugin = strtok (arg, "=");
value = strtok (NULL, "\n");
ccze_plugin_argv_set (plugin, value);
break;
@@ -249,7 +249,7 @@
ccze_config.remfac = 1;
break;
case 'm':
- subopts = optarg;
+ subopts = arg;
while (*subopts != '\0')
{
switch (getsubopt (&subopts, m_subopts, &value))
@@ -273,7 +273,7 @@
}
break;
case 'o':
- subopts = optarg;
+ subopts = arg;
while (*subopts != '\0')
{
switch (getsubopt (&subopts, o_subopts, &value))
|