emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix the sscanf usage in etags


From: Masatake YAMATO
Subject: fix the sscanf usage in etags
Date: Mon, 07 Aug 2006 12:38:50 +0900 (JST)

Could someone install this patch?

I have some troubles in my cvs settings.
Thanks in advance.
 
2006-08-07  Masatake YAMATO  <address@hidden>

        * etags.c (readline): expect sscanf returns 2, 
        not 1.

--- orig/lib-src/etags.c
+++ mod/lib-src/etags.c
@@ -6296,7 +6296,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;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]