projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more work in the lib-mime. begin to "rewr^H^Had" the code in rfc2231.c
[apps/madmutt.git]
/
imap
/
auth_cram.c
diff --git
a/imap/auth_cram.c
b/imap/auth_cram.c
index
ba2f42e
..
14772b0
100644
(file)
--- a/
imap/auth_cram.c
+++ b/
imap/auth_cram.c
@@
-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);
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
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);
p_clear(ipad, 1);
p_clear(opad, 1);