diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-16 19:54:45 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-16 19:54:45 +0000 |
commit | 874c0baa9f70bc95d33a970bf0341036c1bdc94e (patch) | |
tree | d4fe83b0d80637d86604462aded56a9f7dc4fe6e /plugins/Folders/src | |
parent | ace17434152e4d20114d362b6be0118d8f0aaf3d (diff) |
Minorfixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12873 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Folders/src')
-rw-r--r-- | plugins/Folders/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
|