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
commitd30421af6da3931cebda927d0f86c64116fc59e6 (patch)
tree8b6cc0e8aef2d2c9d54f98ba0bbb26cdb7b59020 /lib-src
parentb8953dbd55425c1eccd538753bf49a11900a3d47 (diff)
downloademacs-d30421af6da3931cebda927d0f86c64116fc59e6.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;