X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Freadconf.c;h=688a433163194ed19dd98ef3113d15b2b2ca5814;hb=3dc0c503f9594142c8568fabb2c8e354377251ef;hp=6497ff68e44042b73c7f864311713d3405e46303;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755;p=yaz-moved-to-github.git diff --git a/src/readconf.c b/src/readconf.c index 6497ff6..688a433 100644 --- a/src/readconf.c +++ b/src/readconf.c @@ -37,7 +37,7 @@ int readconf_line(FILE *f, int *lineno, char *line, int len, if (!p) return 0; - for (argc = 0; *p ; argc++) + for (argc = 0; *p && argc < num ; argc++) { if (*p == '#') /* trailing comment */ break;