1
0
mirror of https://github.com/sheumann/hush.git synced 2024-12-30 05:29:47 +00:00

Fix a potential macro expansion problem... isspace can be

a macro causing a double decrement...
This commit is contained in:
Eric Andersen 2002-06-15 14:37:46 +00:00
parent a7d0b41c08
commit b0fd2b06a3

View File

@ -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;