mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 15:54:56 +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)
|
for (p = s; *p; ++p)
|
||||||
continue;
|
continue;
|
||||||
while (p > s && isspace(*--p))
|
while (p > s && (--p, isspace(*p)))
|
||||||
continue;
|
continue;
|
||||||
if (p > s)
|
if (p > s)
|
||||||
++p;
|
++p;
|
||||||
|
Loading…
Reference in New Issue
Block a user