diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-10 13:09:56 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-10 13:09:56 +0000 |
commit | d28d7257050561d9f9f9a39b4c2ddb233ac1ffaa (patch) | |
tree | 9cf8f9267327dfb18f37deb3cc630bcb4a73946a | |
parent | 16e313ad1d508f3d73f901a8811f1cc26963604b (diff) |
fix to bbcode stripping routine
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@39 4f64403b-2f21-0410-a795-97e2b3489a10
-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
|