← Commit list

0b170e6a0

Denys Vlasenko
Denys Vlasenko
2012-02-28
FAILED Duration: 201s

Subject

libbb/procps.c: make fast_strtoul_10() stop on '\n' too

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 →

libbb/procps.c+2 -1
@@ -127,7 +127,8 @@ static unsigned long fast_strtoul_16(char **endptr)
char *str = *endptr;
unsigned long n = 0;
- while ((c = *str++) != ' ') {
+ /* need to stop on both ' ' and '\n' */
+ while ((c = *str++) > ' ') {
c = ((c|0x20) - '0');
if (c > 9)
// c = c + '0' - 'a' + 10: