1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

* etags.c (readline): expect sscanf returns 2,

not 1.
This commit is contained in:
Jan Djärv 2006-08-08 09:34:56 +00:00
parent 867cc23e44
commit 1520a816ef
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-08-07 Masatake YAMATO <jet@gyve.org>
* etags.c (readline): expect sscanf returns 2,
not 1.
2006-08-07 Masatake YAMATO <jet@gyve.org>
* etags.c (TEX_mode): Check getc retruns EOF.

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) == 1)
if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) == 2)
{
char *endp = lbp->buffer + start;