From 16e313ad1d508f3d73f901a8811f1cc26963604b Mon Sep 17 00:00:00 2001 From: sje Date: Fri, 10 Nov 2006 13:09:40 +0000 Subject: fix to bbcode striping routine git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@38 4f64403b-2f21-0410-a795-97e2b3489a10 --- tipper/subst.cpp | 2 +- tipper/tipper_8.vcproj | 2 +- tipper/version.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tipper') diff --git a/tipper/subst.cpp b/tipper/subst.cpp index 5eb6e49..7f43b51 100644 --- a/tipper/subst.cpp +++ b/tipper/subst.cpp @@ -14,7 +14,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/tipper/tipper_8.vcproj b/tipper/tipper_8.vcproj index 3858b89..0ba6fa1 100644 --- a/tipper/tipper_8.vcproj +++ b/tipper/tipper_8.vcproj @@ -44,7 +44,7 @@ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;TIPPER_EXPORTS;_UNICODE;UNICODE;MICROSOFT_LAYER_FOR_UNICODE=1" MinimalRebuild="true" BasicRuntimeChecks="3" - RuntimeLibrary="3" + RuntimeLibrary="1" UsePrecompiledHeader="2" PrecompiledHeaderThrough="common.h" WarningLevel="3" diff --git a/tipper/version.h b/tipper/version.h index a3a11e4..38543c0 100644 --- a/tipper/version.h +++ b/tipper/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 2 #define __RELEASE_NUM 4 -#define __BUILD_NUM 1 +#define __BUILD_NUM 3 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM -- cgit v1.2.3