From 413598d13f39669f93a7a2e0d515f91953aa8da0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Dec 2014 12:14:49 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@11510 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/libyahoo2/crypt.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'protocols/Yahoo/src/libyahoo2') 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); -- cgit v1.2.3