File: src___ccze.c.patch

package info (click to toggle)
ccze 0.2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,076 kB
  • sloc: ansic: 4,649; sh: 2,607; makefile: 249
file content (33 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (5)
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))