* etags.c (readline): expect sscanf returns >= 1.
authorJan Djärv <jan.h.d@swipnet.se>
Wed, 9 Aug 2006 06:22:27 +0000 (06:22 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Wed, 9 Aug 2006 06:22:27 +0000 (06:22 +0000)
lib-src/ChangeLog
lib-src/etags.c

index ae6dded..3e7d9ef 100644 (file)
@@ -1,3 +1,7 @@
+2006-08-09  Jan Dj\e,Ad\e(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, 
index 50f7162..c7d18d3 100644 (file)
@@ -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) == 2)
+         if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) >= 1)
            {
              char *endp = lbp->buffer + start;