* etags.c (readline): expect sscanf returns >= 1.

This commit is contained in:
Jan Djärv 2006-08-09 06:22:27 +00:00
parent c2028ac64f
commit 1f4edc37b8
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2006-08-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* etags.c (readline): expect sscanf returns >= 1.
2006-08-07 Masatake YAMATO <jet@gyve.org>
* etags.c (readline): expect sscanf returns 2,

View file

@ -6259,7 +6259,7 @@ readline (lbp, stream)
int start, lno;
if (DEBUG) start = 0; /* shut up the compiler */
if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) == 2)
if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) >= 1)
{
char *endp = lbp->buffer + start;