]> code.delx.au - gnu-emacs/commitdiff
* etags.c (readline): expect sscanf returns 2,
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 8 Aug 2006 09:34:56 +0000 (09:34 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 8 Aug 2006 09:34:56 +0000 (09:34 +0000)
 not 1.

lib-src/ChangeLog
lib-src/etags.c

index 84b154593222ab889470677b4a8880cdd0c3cf7d..ae6ddedf5f7960780c9c60eabaea2dde1e41891f 100644 (file)
@@ -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.
index d455ddc276d6fce27e9554e5a53ad0cb76c47882..50f7162ded0f3cb69a9e6f57bf04e499ed644cf5 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) == 1)
+         if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) == 2)
            {
              char *endp = lbp->buffer + start;