increased BUFSIZ

This commit is contained in:
akool 2000-07-19 19:45:43 +00:00
parent 4ab12ed6bc
commit 340b80cf14
1 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $Id: conffile.c,v 1.20 1999/11/03 16:13:36 paul Exp $ /* $Id: conffile.c,v 1.21 2000/07/19 19:45:43 akool Exp $
* *
* ISDN accounting for isdn4linux. * ISDN accounting for isdn4linux.
* *
@ -19,6 +19,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Log: conffile.c,v $ * $Log: conffile.c,v $
* Revision 1.21 2000/07/19 19:45:43 akool
* increased BUFSIZ
*
* Revision 1.20 1999/11/03 16:13:36 paul * Revision 1.20 1999/11/03 16:13:36 paul
* Added { } to suppress egcs warnings. * Added { } to suppress egcs warnings.
* *
@ -232,7 +235,7 @@ section *read_file(section *Section, const char *FileName, int Flags)
static section *Read_Lines(section *Section, FILE *fp, const char *FileName, int *Line, int Flags) static section *Read_Lines(section *Section, FILE *fp, const char *FileName, int *Line, int Flags)
{ {
static int InSubSection = 0; static int InSubSection = 0;
char String[BUFSIZ]; char String[8192];
char *Sectionname, *Variable, *Value; char *Sectionname, *Variable, *Value;
int Res; int Res;
int InInclude = 0; int InInclude = 0;
@ -241,7 +244,7 @@ static section *Read_Lines(section *Section, FILE *fp, const char *FileName, int
if (Section != NULL) if (Section != NULL)
InInclude = 1; InInclude = 1;
while (FGets(String, BUFSIZ, fp, Line) != NULL) while (FGets(String, sizeof(String), fp, Line) != NULL)
{ {
if ((Sectionname = Find_Section(String)) != NULL) if ((Sectionname = Find_Section(String)) != NULL)
{ {