+Sat Sep 13 14:36:37 CDT 2003 Adam Heath <doogie@debian.org>
+
+ * lib/parse.c: Fix inverted test of eof in parsedb, while looking for eof
+ after field name.
+
Sat Sep 13 14:34:10 CDT 2003 Adam Heath <doogie@debian.org>
* scripts/update-alternatives.pl: Fix inversion test of $state against
* Sebastian Ley <sebastian.ley@mmweg.rwth-aachen.de>:
Fix inversion test of $state against 'expected' when removing an
alternative. Closes: #203791.
+ * Andrew Suffield <asuffield@debian.org>:
+ Fix inverted test of eof in parsedb, while looking for eof after
+ field name. Closes: #198218
-- Wichert Akkerman <debian@extern.wiggy.net> UNRELEASED
while (!EOF_mmap(dataptr, endptr) && !isspace(c) && c!=':' && c!=MSDOS_EOF_CHAR)
c= getc_mmap(dataptr);
fieldlen= dataptr - fieldstart - 1;
- while (EOF_mmap(dataptr, endptr) && c != '\n' && isspace(c)) c= getc_mmap(dataptr);
+ while (!EOF_mmap(dataptr, endptr) && c != '\n' && isspace(c)) c= getc_mmap(dataptr);
if (EOF_mmap(dataptr, endptr))
parseerr(NULL,filename,lno, warnto,warncount,&newpig,0,
_("EOF after field name `%.*s'"),fieldlen,fieldstart);