emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lib-src/etags.c,v


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/lib-src/etags.c,v
Date: Wed, 09 Aug 2006 06:56:16 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Jan Djärv <jhd>        06/08/09 06:56:16

Index: etags.c
===================================================================
RCS file: /cvsroot/emacs/emacs/lib-src/etags.c,v
retrieving revision 3.58
retrieving revision 3.59
diff -u -b -r3.58 -r3.59
--- etags.c     9 Aug 2006 06:22:27 -0000       3.58
+++ etags.c     9 Aug 2006 06:56:16 -0000       3.59
@@ -6259,9 +6259,10 @@
          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) >= 1
+             && inp[start] == '"')
            {
-             char *endp = lbp->buffer + start;
+             char *endp = lbp->buffer + ++start;
 
              assert (start > 0);
              while ((endp = etags_strchr (endp, '"')) != NULL




reply via email to

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