You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/ccze/files/ccze-segfault.patch

31 lines
814 B

diff -ruN ccze-0.2.1.orig/src/ccze.c ccze-0.2.1/src/ccze.c
--- ccze-0.2.1.orig/src/ccze.c 2003-05-13 20:09:30.000000000 +0200
+++ ccze-0.2.1/src/ccze.c 2006-12-12 20:36:09.000000000 +0100
@@ -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))