More intelligent strtrim

This commit is contained in:
cypress 2023-11-06 10:11:25 -05:00 committed by GitHub
parent bf3a5f8355
commit 682594721f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1250,8 +1250,8 @@ void PF_strtrim (void)
char *c;
c = m;
while (c != '\0' && *c == ' ')
while (c == ' ' || c == '\t' || c == '\n' || c == '\r')
c++;
m = c;