From 9a6db71f8b2125258142a0d0459db2ada107f79c Mon Sep 17 00:00:00 2001 From: bug1 Date: Thu, 28 Aug 2003 22:12:53 +0000 Subject: "Typo and/or thinko: scanning till the end of NUL terminated string should check the byte pointed at not the pointer itself." -junkio@ git-svn-id: svn://busybox.net/trunk/busybox@7276 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- miscutils/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/dc.c b/miscutils/dc.c index 5e367fe68..451423c62 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c @@ -168,7 +168,7 @@ static char *get_token(char **buffer) while (isspace(*current)) { current++; } if (*current != 0) { start = current; - while (!isspace(*current) && current != 0) { current++; } + while (!isspace(*current) && *current != 0) { current++; } *buffer = current; } return start; -- cgit v1.2.3-55-g6feb