"Typo and/or thinko: scanning till the end of NUL terminated string
should check the byte pointed at not the pointer itself." -junkio@
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 @@
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;