diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-24 12:35:43 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-24 12:35:43 +0000 |
commit | 9d62e31863057f847b56e82e3880c4c588c9cb0a (patch) | |
tree | 81215235f7bc58bdc549cf12522cf39150597cd3 /protocols/WhatsApp/src/OpenSSL/p5_crpt2.c | |
parent | dc2a9c66749ef4c8c6a748218bf80b80d0bbe0d6 (diff) |
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@5118 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/OpenSSL/p5_crpt2.c')
-rw-r--r-- | protocols/WhatsApp/src/OpenSSL/p5_crpt2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/OpenSSL/p5_crpt2.c b/protocols/WhatsApp/src/OpenSSL/p5_crpt2.c index cc3b012ac0..18b366d2c2 100644 --- a/protocols/WhatsApp/src/OpenSSL/p5_crpt2.c +++ b/protocols/WhatsApp/src/OpenSSL/p5_crpt2.c @@ -56,6 +56,7 @@ * */ #include <stdio.h> +#include <string.h> #include <stdlib.h> #include "evp.h" @@ -82,7 +83,7 @@ int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, p = out; tkeylen = keylen; if(!pass) passlen = 0; - else if(passlen == -1) passlen = strlen(pass); + else if(passlen == -1) passlen = (int)strlen(pass); while(tkeylen) { if(tkeylen > SHA_DIGEST_LENGTH) cplen = SHA_DIGEST_LENGTH; else cplen = tkeylen; |