changeset 72315:95367ca0bf96

* etags.c (readline): expect sscanf returns 2, not 1.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 08 Aug 2006 09:34:56 +0000
parents b0755f0706c2
children cedc7e7f2199
files lib-src/ChangeLog lib-src/etags.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/ChangeLog	Tue Aug 08 09:33:10 2006 +0000
+++ b/lib-src/ChangeLog	Tue Aug 08 09:34:56 2006 +0000
@@ -1,3 +1,8 @@
+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.
--- a/lib-src/etags.c	Tue Aug 08 09:33:10 2006 +0000
+++ b/lib-src/etags.c	Tue Aug 08 09:34:56 2006 +0000
@@ -6259,7 +6259,7 @@
 	  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;