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:
parent
a7d0b41c08
commit
b0fd2b06a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user