OSDN Git Service

Increase maximum .config line size to 1024.
authorEric Andersen <andersen@codepoet.org>
Wed, 6 Nov 2002 18:49:33 +0000 (18:49 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 6 Nov 2002 18:49:33 +0000 (18:49 -0000)
extra/config/confdata.c

index 0c132a6..78e9c55 100644 (file)
@@ -61,7 +61,7 @@ char *conf_get_default_confname(void)
 int conf_read(const char *name)
 {
        FILE *in = NULL;
-       char line[128];
+       char line[1024];
        char *p, *p2;
        int lineno = 0;
        struct symbol *sym;
@@ -105,7 +105,7 @@ int conf_read(const char *name)
                }
        }
 
-       while (fgets(line, 128, in)) {
+       while (fgets(line, sizeof(line), in)) {
                lineno++;
                switch (line[0]) {
                case '\n':