Fixed Base64Decode() to be binary safe

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@512 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-09-20 01:56:07 +00:00
parent a29b4762bf
commit 04ae4db71a

View File

@@ -2,6 +2,7 @@
#include "String.h"
#include "FileUtils.h"
#include "MD5.h"
#include "main.h"
const char* g_szHTMLescapes[256] = {
"�", 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0-9
@@ -502,7 +503,8 @@ unsigned long CString::Base64Decode(CString& sRet) const {
*p = '\0';
unsigned long uRet = p - out;
sRet = out;
sRet.clear();
sRet.append(out, uRet);
free(out);
return uRet;