diff --git a/WINGs/string.c b/WINGs/string.c index 8403d625..0fbead42 100644 --- a/WINGs/string.c +++ b/WINGs/string.c @@ -167,14 +167,14 @@ void wtokenfree(char **tokens, int count) char *wtrimspace(const char *s) { - char *t; + const char *t; if (s == NULL) return NULL; while (isspace(*s) && *s) s++; - t = (char *)s + strlen(s) - 1; + t = s + strlen(s) - 1; while (t > s && isspace(*t)) t--;