diff options
| author | Jan Djärv | 2006-08-08 09:34:56 +0000 |
|---|---|---|
| committer | Jan Djärv | 2006-08-08 09:34:56 +0000 |
| commit | 1520a816ef390058c2afb984326cd6615e0487df (patch) | |
| tree | d4e8413aa2d267cc5adfa96ac2eeba5a06fd7123 /lib-src | |
| parent | 867cc23e444dd4fd25717f8df280b03718b99907 (diff) | |
| download | emacs-1520a816ef390058c2afb984326cd6615e0487df.tar.gz emacs-1520a816ef390058c2afb984326cd6615e0487df.zip | |
* etags.c (readline): expect sscanf returns 2,
not 1.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/etags.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 84b15459322..ae6ddedf5f7 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2006-08-07 Masatake YAMATO <jet@gyve.org> | 1 | 2006-08-07 Masatake YAMATO <jet@gyve.org> |
| 2 | 2 | ||
| 3 | * etags.c (readline): expect sscanf returns 2, | ||
| 4 | not 1. | ||
| 5 | |||
| 6 | 2006-08-07 Masatake YAMATO <jet@gyve.org> | ||
| 7 | |||
| 3 | * etags.c (TEX_mode): Check getc retruns EOF. | 8 | * etags.c (TEX_mode): Check getc retruns EOF. |
| 4 | File ended without newline causes infinite loop. | 9 | File ended without newline causes infinite loop. |
| 5 | 10 | ||
diff --git a/lib-src/etags.c b/lib-src/etags.c index d455ddc276d..50f7162ded0 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -6259,7 +6259,7 @@ 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) == 2) |
| 6263 | { | 6263 | { |
| 6264 | char *endp = lbp->buffer + start; | 6264 | char *endp = lbp->buffer + start; |
| 6265 | 6265 | ||