--- nohtml_orig\filter.cpp Tue Aug 03 18:19:24 2010 +++ nohtml\filter.cpp Tue Aug 03 18:42:28 2010 @@ -124,9 +124,9 @@ free(messagew); //delete[] pre->szMessage; not necessary - done in server.cpp - buf=(char *)malloc(wcslen(st_wbuf)*3+3); - WideCharToMultiByte(CP_UTF8, 0, st_wbuf, -1,buf,wcslen(st_wbuf)+1, NULL, NULL); - memcpy(&buf[strlen(buf)+1], st_wbuf, lstrlen(buf)*2+2); + size = WideCharToMultiByte(CP_UTF8, 0, st_wbuf, -1, NULL, 0 , NULL, NULL); + buf = (char *)malloc(size); + WideCharToMultiByte(CP_UTF8, 0, st_wbuf, -1, buf, size, NULL, NULL); delete[] st_wbuf; pre->szMessage = buf; } else if(pre->flags & PREF_UNICODE) { --- nohtml_orig\version.h Tue Aug 03 18:19:24 2010 +++ nohtml\version.h Tue Aug 03 18:24:11 2010 @@ -4,8 +4,8 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 0 -#define __RELEASE_NUM 2 -#define __BUILD_NUM 4 +#define __RELEASE_NUM 3 +#define __BUILD_NUM 0 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM @@ -20,7 +20,7 @@ #define __FILENAME "nohtml.dll" #define __DESC "Removes HTML tags from messages, optionally replacing them with bbcodes" -#define __AUTHOR "Scott Ellis" +#define __AUTHOR "Scott Ellis, Manuel Mausz" #define __AUTHOREMAIL "mail@scottellis.com.au" #define __AUTHORWEB "http://www.scottellis.com.au" #define __COPYRIGHT "© 2007 Scott Ellis"