X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Freadconf.c;h=4d9bd057bc778ae5eeb7d2771b2064d2aff1c98e;hp=6497ff68e44042b73c7f864311713d3405e46303;hb=fc9ad7425061fafd9340229aa006c4db115deee7;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/readconf.c b/src/readconf.c index 6497ff6..4d9bd05 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. */ @@ -13,7 +13,6 @@ #endif #include -#include #include #include @@ -37,7 +36,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;