X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Freadconf.c;h=688a433163194ed19dd98ef3113d15b2b2ca5814;hp=264ea7a7426a58408f993fe7f155b636bdb9fa35;hb=7b4adcc54d64c9196a8c19a7f69c850774b8776b;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c diff --git a/src/readconf.c b/src/readconf.c index 264ea7a..688a433 100644 --- a/src/readconf.c +++ b/src/readconf.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 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;