aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog15
-rw-r--r--lib-src/etags.c7
2 files changed, 19 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index f61188fb8d5..3328f010846 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,18 @@
12006-08-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * etags.c (readline): expect sscanf returns >= 1.
4 (readline): Change position on %n and \" in sscanf.
5
62006-08-07 Masatake YAMATO <jet@gyve.org>
7
8 * etags.c (readline): expect sscanf returns 2,
9 not 1.
10
112006-08-07 Masatake YAMATO <jet@gyve.org>
12
13 * etags.c (TEX_mode): Check getc retruns EOF.
14 File ended without newline causes infinite loop.
15
12002-07-30 Adrian Aichner <adrian@xemacs.org> (tiny change) 162002-07-30 Adrian Aichner <adrian@xemacs.org> (tiny change)
2 17
3 * etags.c: It's XEmacs, not Xemacs: change all the occurences. 18 * etags.c: It's XEmacs, not Xemacs: change all the occurences.
diff --git a/lib-src/etags.c b/lib-src/etags.c
index d60c12c2bcc..49a18be1df5 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -5165,7 +5165,7 @@ TEX_mode (inf)
5165 { 5165 {
5166 /* Skip to next line if we hit the TeX comment char. */ 5166 /* Skip to next line if we hit the TeX comment char. */
5167 if (c == '%') 5167 if (c == '%')
5168 while (c != '\n') 5168 while (c != '\n' && c != EOF)
5169 c = getc (inf); 5169 c = getc (inf);
5170 else if (c == TEX_LESC || c == TEX_SESC ) 5170 else if (c == TEX_LESC || c == TEX_SESC )
5171 break; 5171 break;
@@ -6259,9 +6259,10 @@ readline (lbp, stream)
6259 int start, lno; 6259 int start, lno;
6260 6260
6261 if (DEBUG) start = 0; /* shut up the compiler */ 6261 if (DEBUG) start = 0; /* shut up the compiler */
6262 if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) == 1) 6262 if (sscanf (lbp->buffer, "#line %d %n\"", &lno, &start) >= 1
6263 && lbp->buffer[start] == '"')
6263 { 6264 {
6264 char *endp = lbp->buffer + start; 6265 char *endp = lbp->buffer + ++start;
6265 6266
6266 assert (start > 0); 6267 assert (start > 0);
6267 while ((endp = etags_strchr (endp, '"')) != NULL 6268 while ((endp = etags_strchr (endp, '"')) != NULL