diff options
-rw-r--r-- | source/blender/blenlib/intern/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index 7f5b1e7ea65..99db2f0a290 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -818,7 +818,7 @@ void BLI_str_toupper_ascii(char *str, const size_t len) */ void BLI_str_rstrip(char *str) { - for (int i = (int)strlen(str) - 1; i > 0; i--) { + for (int i = (int)strlen(str) - 1; i >= 0; i--) { if (isspace(str[i])) { str[i] = '\0'; } |