X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Freadconf.c;h=688a433163194ed19dd98ef3113d15b2b2ca5814;hp=28a21bd3ba29676012d7cd60546d597ba26029a3;hb=7b4adcc54d64c9196a8c19a7f69c850774b8776b;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/src/readconf.c b/src/readconf.c index 28a21bd..688a433 100644 --- a/src/readconf.c +++ b/src/readconf.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS - * All rights reserved. - * - * $Id: readconf.c,v 1.7 2007-01-03 08:42:15 adam Exp $ +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2010 Index Data + * See the file LICENSE for details. */ /** @@ -39,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; @@ -92,6 +90,7 @@ int readconf(char *name, void *rprivate, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab