Mercurial > emacs
diff lib-src/etags.c @ 72327:1fb4cb2b0ce0
* etags.c (readline): expect sscanf returns >= 1.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Wed, 09 Aug 2006 06:22:27 +0000 |
parents | 95367ca0bf96 |
children | bf72b454a40d |
line wrap: on
line diff
--- a/lib-src/etags.c Wed Aug 09 04:55:10 2006 +0000 +++ b/lib-src/etags.c Wed Aug 09 06:22:27 2006 +0000 @@ -6259,7 +6259,7 @@ int start, lno; if (DEBUG) start = 0; /* shut up the compiler */ - if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) == 2) + if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) >= 1) { char *endp = lbp->buffer + start;