From 1f4edc37b89c6981092342ed44328bbdf7efd73a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Wed, 9 Aug 2006 06:22:27 +0000 Subject: [PATCH] * etags.c (readline): expect sscanf returns >= 1. --- lib-src/ChangeLog | 4 ++++ lib-src/etags.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index ae6ddedf5f7..3e7d9efad31 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,7 @@ +2006-08-09 Jan Dj,Ad(Brv + + * etags.c (readline): expect sscanf returns >= 1. + 2006-08-07 Masatake YAMATO * etags.c (readline): expect sscanf returns 2, diff --git a/lib-src/etags.c b/lib-src/etags.c index 50f7162ded0..c7d18d34849 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -6259,7 +6259,7 @@ readline (lbp, stream) 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; -- 2.39.2