Package: kerneloops
Version: 0.12+git20090217-1ubuntu2
Severity: normal

Hi,

Attached is a patch from Matt Zimmerman to fix this.

We've sent it upstream a couple of times now with no response yet.

Thanks,

James
commit 7975e75560ed1c6e8ce9899a133d7c25a5c8e083
Author: Matt Zimmerman <[email protected]>
Date:   Tue Jul 7 12:30:09 2009 +0100

    Remove newlines when parsing the config file
    
    Ensure that the newlines are not included when parsing a string value
    from the config file

diff --git a/configfile.c b/configfile.c
index 0bac79a..4798310 100644
--- a/configfile.c
+++ b/configfile.c
@@ -60,6 +60,9 @@ void read_config_file(char *filename)
                        free(line);
                        continue;
                }
+               c = strchr(line, '\n');
+               if (c != NULL)
+                       *c = '\0';
                c = strstr(line, "allow-submit ");
                if (c) {
                        c += 13;

Reply via email to