X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fauth_sasl.c;h=4d9df2640ef74aede786012ae8348828d812e953;hb=4761fa78a6dfc9437caa6e6e0aac806e50e01c83;hp=f9be1807dc224fb4c167ad49b4494706d29b358c;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a;p=apps%2Fmadmutt.git diff --git a/imap/auth_sasl.c b/imap/auth_sasl.c index f9be180..4d9df26 100644 --- a/imap/auth_sasl.c +++ b/imap/auth_sasl.c @@ -14,15 +14,14 @@ #endif #include +#include #include "mutt.h" -#include "ascii.h" #include "mutt_sasl.h" #include "imap_private.h" #include "auth.h" -#include "lib/mem.h" -#include "lib/intl.h" +#include #include "lib/debug.h" #include @@ -111,7 +110,7 @@ imap_auth_res_t imap_auth_sasl (IMAP_DATA * idata, const char *method) if (irc == IMAP_CMD_RESPOND) { if (sasl_decode64 - (idata->cmd.buf + 2, str_len (idata->cmd.buf + 2), buf, + (idata->cmd.buf + 2, m_strlen(idata->cmd.buf + 2), buf, LONG_STRING - 1, &len) != SASL_OK) { debug_print (1, ("error base64-decoding server response.\n")); @@ -142,7 +141,7 @@ imap_auth_res_t imap_auth_sasl (IMAP_DATA * idata, const char *method) } if (irc == IMAP_CMD_RESPOND) { - strfcpy (buf + olen, "\r\n", sizeof (buf) - olen); + m_strcpy(buf + olen, sizeof(buf) - olen, "\r\n"); mutt_socket_write (idata->conn, buf); }