summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src/base16.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-16 14:52:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-16 14:52:30 +0000
commit061047f67b695296a39a65df4a24916def1f67d5 (patch)
tree1b8b26385c66a0605e1a2688b23d68ea4558b32a /plugins/CryptoPP/src/base16.cpp
parent16883b99a9de3b600bb7cc0bd42317249e74f2df (diff)
custom (and also buggy) base64 processing code replaced with the core functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@4987 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 ace113ff76..700cec8502 100644
--- a/plugins/CryptoPP/src/base16.cpp
+++ b/plugins/CryptoPP/src/base16.cpp
@@ -18,7 +18,7 @@ char *base16encode(const char *inBuffer, int count) {
}
-char *base16decode(const char *inBuffer, size_t *count) {
+char *base16decode(const char *inBuffer, unsigned int *count) {
char *outBuffer = (char *) malloc(*count);
BYTE *outBufferPtr = (BYTE *) outBuffer;
@@ -56,7 +56,7 @@ char *base16decode(const char *inBuffer, size_t *count) {
char *base16decode(const char *inBuffer)
{
- size_t count = strlen(inBuffer);
+ unsigned count = (unsigned)strlen(inBuffer);
return base16decode(inBuffer, &count);
}