X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fsyntax-file.c;h=0771ade3a9e92dccc0c3063a7c14d13014c010e3;hb=refs%2Fheads%2Fmaster;hp=a48dba4a136cad55c78f873b5b395b2cdb60da13;hpb=9b94efd7513afdb12a6023024e00e50801532fee;p=pspp-builds.git diff --git a/src/language/syntax-file.c b/src/language/syntax-file.c index a48dba4a..0771ade3 100644 --- a/src/language/syntax-file.c +++ b/src/language/syntax-file.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -99,7 +100,8 @@ read_syntax_file (struct getl_interface *s, do { sfs->ln++; - if (!ds_read_line (line, sfs->syntax_file)) + ds_clear (line); + if (!ds_read_line (line, sfs->syntax_file, SIZE_MAX)) { if (ferror (sfs->syntax_file)) msg (ME, _("Reading `%s': %s."), sfs->fn, strerror (errno));