← Commit list

b0fd2b06a

Eric Andersen
Eric Andersen
2002-06-15
FAILED Duration: 6s

Subject

Fix a potential macro expansion problem... isspace can be a macro causing a double decrement...

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 →

coreutils/cal.c+1 -1
@@ -372,7 +372,7 @@ void trim_trailing_spaces(char *s)
for (p = s; *p; ++p)
continue;
- while (p > s && isspace(*--p))
+ while (p > s && (--p, isspace(*p)))
continue;
if (p > s)
++p;