← Commit list

523c1675a

Glenn L McGrath
Glenn L McGrath
2003-08-28
FAILED Duration: 77s

Subject

"Typo and/or thinko: scanning till the end of NUL terminated string should check the byte pointed at not the pointer itself." -junkio@

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/dc.c+1 -1
@@ -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;