changeset 72327:1fb4cb2b0ce0

* etags.c (readline): expect sscanf returns >= 1.
author Jan Djärv <jan.h.d@swipnet.se>
date Wed, 09 Aug 2006 06:22:27 +0000
parents 873436d4aaf2
children bf72b454a40d
files lib-src/ChangeLog lib-src/etags.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/ChangeLog	Wed Aug 09 04:55:10 2006 +0000
+++ b/lib-src/ChangeLog	Wed Aug 09 06:22:27 2006 +0000
@@ -1,3 +1,7 @@
+2006-08-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
+
+	* etags.c (readline): expect sscanf returns >= 1.
+
 2006-08-07  Masatake YAMATO  <jet@gyve.org>
 
 	* etags.c (readline): expect sscanf returns 2, 
--- a/lib-src/etags.c	Wed Aug 09 04:55:10 2006 +0000
+++ b/lib-src/etags.c	Wed Aug 09 06:22:27 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) == 2)
+	  if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) >= 1)
 	    {
 	      char *endp = lbp->buffer + start;