From 75cf723182f3017a1dfb9c06cb6d1ed177abab68 Mon Sep 17 00:00:00 2001 From: sje Date: Thu, 11 Oct 2007 07:36:47 +0000 Subject: fix for incorrect string length of ending size tag git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@360 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/services.cpp | 2 +- yapp/version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yapp/services.cpp b/yapp/services.cpp index 2a5c71c..86a753f 100644 --- a/yapp/services.cpp +++ b/yapp/services.cpp @@ -37,7 +37,7 @@ void StripBBCodesInPlace(wchar_t *text) { else if(len - read >= 5 && (wcsnicmp(text + read, L"[size", 5) == 0)) { while(read < len && text[read] != L']') read++; read++;// skip the ']' - } else if(len - read >= 7 && (wcsnicmp(text + read, L"[/size]", 8) == 0)) + } else if(len - read >= 7 && (wcsnicmp(text + read, L"[/size]", 7) == 0)) read += 7; else { if(text[read] != text[write]) text[write] = text[read]; diff --git a/yapp/version.h b/yapp/version.h index c816a66..23fa7d1 100644 --- a/yapp/version.h +++ b/yapp/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 5 #define __RELEASE_NUM 0 -#define __BUILD_NUM 4 +#define __BUILD_NUM 5 #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