From: Eric Andersen Date: Sat, 15 Jun 2002 14:37:46 +0000 (-0000) Subject: Fix a potential macro expansion problem... isspace can be X-Git-Tag: 0_60_4~159 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b0fd2b06a32a0a8a70a65e1cacf70104afc83faa;p=oweals%2Fbusybox.git Fix a potential macro expansion problem... isspace can be a macro causing a double decrement... --- diff --git a/coreutils/cal.c b/coreutils/cal.c index f6578bf43..3ccd3fff5 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c @@ -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;