From 874c0baa9f70bc95d33a970bf0341036c1bdc94e Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 16 Apr 2015 19:54:45 +0000 Subject: Minorfixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12873 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Folders/src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Folders/src') diff --git a/plugins/Folders/src/utils.cpp b/plugins/Folders/src/utils.cpp index 748da0d592..522866fd10 100644 --- a/plugins/Folders/src/utils.cpp +++ b/plugins/Folders/src/utils.cpp @@ -128,7 +128,7 @@ wchar_t *StrReplace(wchar_t *source, const wchar_t *what, const wchar_t *withWha char *StrTrim(char *szText, const char *szTrimChars) { size_t i = strlen(szText) - 1; - while (i >= 0 && strchr(szTrimChars, szText[i])) + while (strchr(szTrimChars, szText[i])) szText[i--] = '\0'; i = 0; @@ -144,7 +144,7 @@ char *StrTrim(char *szText, const char *szTrimChars) wchar_t *StrTrim(wchar_t *szText, const wchar_t *szTrimChars) { size_t i = wcslen(szText) - 1; - while (i >= 0 && wcschr(szTrimChars, szText[i])) + while (wcschr(szTrimChars, szText[i])) szText[i--] = '\0'; i = 0; -- cgit v1.2.3