summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2006-08-08 09:34:56 +0000
committerJan Djärv <jan.h.d@swipnet.se>2006-08-08 09:34:56 +0000
commit1520a816ef390058c2afb984326cd6615e0487df (patch)
treed4e8413aa2d267cc5adfa96ac2eeba5a06fd7123 /lib-src
parent867cc23e444dd4fd25717f8df280b03718b99907 (diff)
downloademacs-1520a816ef390058c2afb984326cd6615e0487df.tar.gz
* etags.c (readline): expect sscanf returns 2,
not 1.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/etags.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 84b15459322..ae6ddedf5f7 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,5 +1,10 @@
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.
File ended without newline causes infinite loop.
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;