Package: ccze
Version: 0.2.1-2

Running ccze with spaces in the option arguments causes it to crash
for me on OS X. I've opened the following bug report in homebrew about
it:

https://github.com/Homebrew/homebrew-core/issues/681

I believe the same problem exists in debian because the root cause is
the use of "#if HAVE_SUBOPTARg" in one location instead of "#if
HAVE_SUBOPTARG" as it is in every other.

I submitted the following patch to homebrew, and it should probably be
applied in debian as well:

diff --git a/src/ccze-compat.c b/src/ccze-compat.c
index 0a3c335..5afdc20 100644
--- a/src/ccze-compat.c
+++ b/src/ccze-compat.c
@@ -275,7 +275,7 @@ ccze_getsubopt (char **optionp, char *const *tokens,
  char **valuep)
 {
   int i = getsubopt (optionp, tokens, valuep);
-#if HAVE_SUBOPTARg
+#if HAVE_SUBOPTARG
   if (!*valuep && suboptarg)
     *valuep = strdup (suboptarg);
 #endif

-Steven Willis

Reply via email to