X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Freadconf.c;h=7a9c2821d2068284db071758311b86ae016c8c69;hb=7bfdd9cdcbfd12d6690278c9b56a7ac26b2457e9;hp=6497ff68e44042b73c7f864311713d3405e46303;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755;p=yaz-moved-to-github.git diff --git a/src/readconf.c b/src/readconf.c index 6497ff6..7a9c282 100644 --- a/src/readconf.c +++ b/src/readconf.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ @@ -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;