aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorJan Djärv2006-08-08 09:33:10 +0000
committerJan Djärv2006-08-08 09:33:10 +0000
commit867cc23e444dd4fd25717f8df280b03718b99907 (patch)
tree6822f0db48be3af307f6564926f7928e22912a0c /lib-src
parent878bf4b8602c8c08971c5d3beb778fd90c6bccf3 (diff)
downloademacs-867cc23e444dd4fd25717f8df280b03718b99907.tar.gz
emacs-867cc23e444dd4fd25717f8df280b03718b99907.zip
* etags.c (TEX_mode): Check getc retruns EOF.
File ended without newline causes infinite loop.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/etags.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index f61188fb8d5..84b15459322 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
12006-08-07 Masatake YAMATO <jet@gyve.org>
2
3 * etags.c (TEX_mode): Check getc retruns EOF.
4 File ended without newline causes infinite loop.
5
12002-07-30 Adrian Aichner <adrian@xemacs.org> (tiny change) 62002-07-30 Adrian Aichner <adrian@xemacs.org> (tiny change)
2 7
3 * etags.c: It's XEmacs, not Xemacs: change all the occurences. 8 * 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..d455ddc276d 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;