fix to previous

This commit is contained in:
CaH4e3 2012-03-17 18:03:23 +00:00
parent 565f063fa5
commit 75e13fd152
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ int str_rtrim(char *str, int flags) {
while (strl = strlen(str)) {
if ((flags & STRIP_SP) && (str[0] == ' ')) {
i++;
str[str] = 0;
str[strl] = 0;
} else if ((flags & STRIP_TAB) && (str[0] == '\t')) {
i++;
str[strl] = 0;