summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Cooper <gentoo@lakedaemon.net>2012-10-21 21:37:29 -0400
committerJason Cooper <gentoo@lakedaemon.net>2012-10-21 21:37:29 -0400
commit01f0c78471d0519bbfe455e78141a1144ae2303e (patch)
tree253261c5605e4a5a1fc911ed1ffe6aa86c9801d3 /app-admin/ccze/files/ccze-segfault.patch
parentapp-text/tree: build on ~x64-macos (diff)
downloadlogan-master.tar.gz
logan-master.tar.bz2
logan-master.zip
app-admin/ccze: build on ~x64-macosHEADmaster
Signed-off-by: Jason Cooper <gentoo@lakedaemon.net>
Diffstat (limited to 'app-admin/ccze/files/ccze-segfault.patch')
-rw-r--r--app-admin/ccze/files/ccze-segfault.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/app-admin/ccze/files/ccze-segfault.patch b/app-admin/ccze/files/ccze-segfault.patch
new file mode 100644
index 0000000..fa30d2f
--- /dev/null
+++ b/app-admin/ccze/files/ccze-segfault.patch
@@ -0,0 +1,30 @@
+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))