X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fauth_cram.c;h=14772b03e09edb42f72bf8711cc021c32830ad59;hp=402bd7594eaa3960d395c0aeb90a985253088ddb;hb=22601f25ede6703ba7cd06ee84eddd2045308570;hpb=0c12d960399d14b4143b2bb91a96bdaca64e4c56 diff --git a/imap/auth_cram.c b/imap/auth_cram.c index 402bd75..14772b0 100644 --- a/imap/auth_cram.c +++ b/imap/auth_cram.c @@ -102,7 +102,7 @@ imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA * idata, const char *method) mutt_to_base64 ((unsigned char *) ibuf, (unsigned char *) obuf, m_strlen(obuf), sizeof (ibuf) - 2); - str_cat (ibuf, sizeof (ibuf), "\r\n"); + m_strcat(ibuf, sizeof(ibuf), "\r\n"); mutt_socket_write (idata->conn, ibuf); do @@ -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);