From: Jan Djärv Date: Tue, 8 Aug 2006 09:34:56 +0000 (+0000) Subject: * etags.c (readline): expect sscanf returns 2, X-Git-Tag: emacs-pretest-22.0.90~1072 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1520a816ef390058c2afb984326cd6615e0487df;p=emacs.git * etags.c (readline): expect sscanf returns 2, not 1. --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 84b15459322..ae6ddedf5f7 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2006-08-07 Masatake YAMATO + + * etags.c (readline): expect sscanf returns 2, + not 1. + 2006-08-07 Masatake YAMATO * etags.c (TEX_mode): Check getc retruns EOF. diff --git a/lib-src/etags.c b/lib-src/etags.c index d455ddc276d..50f7162ded0 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -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;