X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fauth_cram.c;h=b440dd2a0f68f9b44a6f10c35d08d3cd01ccfd4f;hp=3003f7aa147cb5b0b976bf1dc02921b341c145cd;hb=777c7ccc259a8b7f5fadac70267c59e62a2cb300;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/imap/auth_cram.c b/imap/auth_cram.c index 3003f7a..b440dd2 100644 --- a/imap/auth_cram.c +++ b/imap/auth_cram.c @@ -18,6 +18,10 @@ /* IMAP login/authentication code */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "imap_private.h" #include "auth.h" @@ -104,7 +108,7 @@ imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA* idata, const char* method) mutt_to_base64 ((unsigned char*) ibuf, (unsigned char*) obuf, strlen (obuf), sizeof (ibuf) - 2); - strncat (ibuf, "\r\n", sizeof (ibuf)); + safe_strcat (ibuf, sizeof (ibuf), "\r\n"); mutt_socket_write (idata->conn, ibuf); do