From 1520a816ef390058c2afb984326cd6615e0487df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Tue, 8 Aug 2006 09:34:56 +0000 Subject: [PATCH] * etags.c (readline): expect sscanf returns 2, not 1. --- lib-src/ChangeLog | 5 +++++ lib-src/etags.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.2