emacs-devel
[Top][All Lists]
Advanced

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

Re: fix the sscanf usage in etags


From: Jan Djärv
Subject: Re: fix the sscanf usage in etags
Date: Tue, 08 Aug 2006 11:35:02 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060614)



Masatake YAMATO skrev:
Could someone install this patch?


Done.

        Jan D.

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;

_______________________________________________
Emacs-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-devel




reply via email to

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