diff options
| author | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
| commit | 2c302df3a13236bfbf8ea1b771d13618fcda8d71 (patch) | |
| tree | f26dc9f22861dc37610de319d05255de058c221b /lib-src/ebrowse.c | |
| parent | 0c747cb143fa227e78f350ac353d703f489209df (diff) | |
| parent | 175069efeb080517afefdd44a06f7a779ea8c25c (diff) | |
| download | emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.tar.gz emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.zip | |
Merge from trunk
Diffstat (limited to 'lib-src/ebrowse.c')
| -rw-r--r-- | lib-src/ebrowse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 1fcbb8662f5..81067a90819 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -1700,6 +1700,11 @@ yylex (void) | |||
| 1700 | case '/': | 1700 | case '/': |
| 1701 | while (GET (c) && c != '\n') | 1701 | while (GET (c) && c != '\n') |
| 1702 | ; | 1702 | ; |
| 1703 | /* Don't try to read past the end of the input buffer if | ||
| 1704 | the file ends in a C++ comment without a newline. */ | ||
| 1705 | if (c == 0) | ||
| 1706 | return YYEOF; | ||
| 1707 | |||
| 1703 | INCREMENT_LINENO; | 1708 | INCREMENT_LINENO; |
| 1704 | break; | 1709 | break; |
| 1705 | 1710 | ||