summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src/base16.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-22 19:30:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-22 19:30:48 +0000
commit4164b967c13c87fd2a5a3459b037a6a823faa872 (patch)
tree873ff8f5ba9900c06a444c4b0d2e46651c1eaf37 /plugins/CryptoPP/src/base16.cpp
parent5a6789f0c45660feb1dbd5ada8438c43b8f6bb2c (diff)
SecureIM:
- fixed crash with memory allocation conflict; - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@6593 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/src/base16.cpp')
-rw-r--r--plugins/CryptoPP/src/base16.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CryptoPP/src/base16.cpp b/plugins/CryptoPP/src/base16.cpp
index 700cec8502..d28daf99a3 100644
--- a/plugins/CryptoPP/src/base16.cpp
+++ b/plugins/CryptoPP/src/base16.cpp
@@ -20,8 +20,8 @@ char *base16encode(const char *inBuffer, int count) {
char *base16decode(const char *inBuffer, unsigned int *count) {
- char *outBuffer = (char *) malloc(*count);
- BYTE *outBufferPtr = (BYTE *) outBuffer;
+ char *outBuffer = (char *)mir_alloc(*count);
+ BYTE *outBufferPtr = (BYTE *)outBuffer;
bool big_endian = false;
if (*inBuffer == '0' && *(inBuffer+1) == 'x') {