summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;