X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fauth_cram.c;h=0438a8229bea35d361d87a2f3d776adb8d562ffb;hp=ba2f42ec5db91b8536a71ca8524ec427daa2c543;hb=ac813896ca32d850febc2d95065ac4fa040f11f9;hpb=1c16e9623a9fb6a15bb284a6f7322b583ebc06a7 diff --git a/imap/auth_cram.c b/imap/auth_cram.c index ba2f42e..0438a82 100644 --- a/imap/auth_cram.c +++ b/imap/auth_cram.c @@ -21,8 +21,8 @@ #define MD5_DIGEST_LEN 16 #include +#include #include -#include "lib/debug.h" /* forward declarations */ static void hmac_md5 (const char *password, char *challenge, @@ -143,11 +143,11 @@ static void hmac_md5 (const char *password, char *challenge, MD5Init (&ctx); MD5Update (&ctx, (unsigned char *) password, secret_len); MD5Final (hash_passwd, &ctx); - strfcpy ((char *) secret, (char *) hash_passwd, MD5_DIGEST_LEN); + m_strcpy((char *)secret, MD5_DIGEST_LEN, (char *)hash_passwd); secret_len = MD5_DIGEST_LEN; } else - strfcpy ((char *) secret, password, sizeof (secret)); + m_strcpy((char *)secret, sizeof(secret), password); p_clear(ipad, 1); p_clear(opad, 1);