projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix serious complaint from heikki
[yaz-moved-to-github.git]
/
src
/
readconf.c
diff --git
a/src/readconf.c
b/src/readconf.c
index
6497ff6
..
688a433
100644
(file)
--- 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;