summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Wycik <makar@poczta.of.pl>2013-10-08 20:57:16 +0000
committerMaciej Wycik <makar@poczta.of.pl>2013-10-08 20:57:16 +0000
commit81c409a40ad82e64974a9ddfc9117db51269ce92 (patch)
tree21c6f16b53607a13f752cda52b9340fed751efa2
parentd057e7ab9148281e4dab0e480f726abe344cb90b (diff)
BinToHex now return correct value (plugin crash if unread email found)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6409 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Exchange/src/utils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Exchange/src/utils.cpp b/plugins/Exchange/src/utils.cpp
index b3b5da1217..2d89cd267e 100644
--- a/plugins/Exchange/src/utils.cpp
+++ b/plugins/Exchange/src/utils.cpp
@@ -87,7 +87,8 @@ char *BinToHex(int size, PBYTE data)
int maxSize = size * 2 + HEX_SIZE + 1;
szresult = (char *) new char[ maxSize ];
mir_snprintf(szresult, maxSize, "%0*X", HEX_SIZE, size);
- return bin2hex(data, size, szresult + HEX_SIZE);
+ bin2hex(data, size, szresult + HEX_SIZE);
+ return szresult;
}
void HexToBin(TCHAR *inData, ULONG &size, LPBYTE &outData)