summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src/utils.cpp')
-rw-r--r--plugins/Scriver/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp
index ec5c25b5e3..7fc1faa605 100644
--- a/plugins/Scriver/src/utils.cpp
+++ b/plugins/Scriver/src/utils.cpp
@@ -188,7 +188,7 @@ void rtrimText(TCHAR *text)
{
static TCHAR szTrimString[] = _T(":;,.!?\'\"><()[]- \r\n");
size_t iLen = mir_tstrlen(text) - 1;
- while (iLen >= 0 && _tcschr(szTrimString, text[iLen])) {
+ while (_tcschr(szTrimString, text[iLen])) {
text[iLen] = _T('\0');
iLen--;
}