From: Pierre Habouzit Date: Tue, 28 Nov 2006 22:28:05 +0000 (+0100) Subject: that was in fact a memcpy, nice try X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=3bcb8dc15c7c3fbb2af0948b5046d9464dbbfb8e;p=apps%2Fmadmutt.git that was in fact a memcpy, nice try --- diff --git a/mutt_sasl.c b/mutt_sasl.c index f38acda..b25db27 100644 --- a/mutt_sasl.c +++ b/mutt_sasl.c @@ -302,7 +302,7 @@ static int mutt_sasl_cb_pass(sasl_conn_t *conn __attribute__ ((unused)), *psecret = xmalloc(sizeof(sasl_secret_t) + len); (*psecret)->len = len; - m_strcpy((char*)(*psecret)->data, len, account->pass); + memcpy((char*)(*psecret)->data, account->pass, len); return SASL_OK; }