From 523c1675a20cde6ae3c6a04a8d5c5285992a5fdc Mon Sep 17 00:00:00 2001 From: Glenn L McGrath 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@ --- miscutils/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miscutils/dc.c b/miscutils/dc.c index 5e367fe..451423c 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.1