diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-18 12:14:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-18 12:14:49 +0000 |
commit | 413598d13f39669f93a7a2e0d515f91953aa8da0 (patch) | |
tree | 22c82bf1890c1863cd98f35e94a2a9686031d12b /protocols/Yahoo | |
parent | 4f36b966069e1a75c2c7783c16c8c169e02ce1d2 (diff) |
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11510 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo')
-rw-r--r-- | protocols/Yahoo/src/libyahoo2/crypt.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/Yahoo/src/libyahoo2/crypt.cpp b/protocols/Yahoo/src/libyahoo2/crypt.cpp index b54456fd85..29f22e96f9 100644 --- a/protocols/Yahoo/src/libyahoo2/crypt.cpp +++ b/protocols/Yahoo/src/libyahoo2/crypt.cpp @@ -47,14 +47,11 @@ static const char b64t[65] = char *yahoo_crypt(char *key, char *salt)
{
char *buffer = NULL;
- int buflen = 0;
- int needed = 3 + strlen (salt) + 1 + 26 + 1;
+ size_t buflen = 0, needed = 3 + strlen (salt) + 1 + 26 + 1;
BYTE alt_result[16];
mir_md5_state_t ctx;
mir_md5_state_t alt_ctx;
- int salt_len;
- int key_len;
int cnt;
char *cp;
@@ -70,8 +67,8 @@ char *yahoo_crypt(char *key, char *salt) /* Skip salt prefix. */
salt += sizeof (md5_salt_prefix) - 1;
- salt_len = (int)MIN (strcspn (salt, "$"), 8);
- key_len = (int)strlen (key);
+ int salt_len = (int)MIN(strcspn(salt, "$"), 8);
+ int key_len = (int)strlen(key);
/* Prepare for the real work. */
mir_md5_init(&ctx);
|