ccze-segfault.patch 660 B

123456789101112131415161718192021222324252627282930
  1. --- a/src/ccze.c
  2. +++ b/src/ccze.c
  3. @@ -209,7 +209,7 @@
  4. }
  5. break;
  6. case 'a':
  7. - plugin = strtok (optarg, "=");
  8. + plugin = strtok (arg, "=");
  9. value = strtok (NULL, "\n");
  10. ccze_plugin_argv_set (plugin, value);
  11. break;
  12. @@ -249,7 +249,7 @@
  13. ccze_config.remfac = 1;
  14. break;
  15. case 'm':
  16. - subopts = optarg;
  17. + subopts = arg;
  18. while (*subopts != '\0')
  19. {
  20. switch (getsubopt (&subopts, m_subopts, &value))
  21. @@ -273,7 +273,7 @@
  22. }
  23. break;
  24. case 'o':
  25. - subopts = optarg;
  26. + subopts = arg;
  27. while (*subopts != '\0')
  28. {
  29. switch (getsubopt (&subopts, o_subopts, &value))