diff options
-rw-r--r-- | yapp/services.cpp | 2 | ||||
-rw-r--r-- | yapp/version.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/yapp/services.cpp b/yapp/services.cpp index 28f2b5b..e0b6bff 100644 --- a/yapp/services.cpp +++ b/yapp/services.cpp @@ -22,7 +22,7 @@ void StripBBCodesInPlace(wchar_t *text) { if(text[read] != text[write]) text[write] = text[read]; read++; write++; } - if(read == len) break; + if(read > len) break; if(len - read >= 3 && (wcsnicmp(text + read, L"[b]", 3) == 0 || wcsnicmp(text + read, L"[i]", 3) == 0)) read += 3; diff --git a/yapp/version.h b/yapp/version.h index c02ba06..4239f7d 100644 --- a/yapp/version.h +++ b/yapp/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 1
#define __RELEASE_NUM 4
-#define __BUILD_NUM 3
+#define __BUILD_NUM 4
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
|