Commit 1f4edc37 authored by Jan Djärv's avatar Jan Djärv
Browse files

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

parent c2028ac6
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> 2006-08-07 Masatake YAMATO <jet@gyve.org>
* etags.c (readline): expect sscanf returns 2, * etags.c (readline): expect sscanf returns 2,
......
...@@ -6259,7 +6259,7 @@ readline (lbp, stream) ...@@ -6259,7 +6259,7 @@ readline (lbp, stream)
int start, lno; int start, lno;
if (DEBUG) start = 0; /* shut up the compiler */ 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; char *endp = lbp->buffer + start;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment