]> code.delx.au - gnu-emacs/blobdiff - lib-src/etags.c
(ses-call-printer-return): Improve previous doc fix.
[gnu-emacs] / lib-src / etags.c
index c7d18d348494dc5d1ba7bc885c1e9fa56127fa52..49a18be1df55a09296dfca97c29b887caa1591d4 100644 (file)
@@ -6259,9 +6259,10 @@ 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) >= 1
+             && lbp->buffer[start] == '"')
            {
-             char *endp = lbp->buffer + start;
+             char *endp = lbp->buffer + ++start;
 
              assert (start > 0);
              while ((endp = etags_strchr (endp, '"')) != NULL