that was in fact a memcpy, nice try
authorPierre Habouzit <madcoder@debian.org>
Tue, 28 Nov 2006 22:28:05 +0000 (23:28 +0100)
committerPierre Habouzit <madcoder@debian.org>
Tue, 28 Nov 2006 22:28:05 +0000 (23:28 +0100)
mutt_sasl.c

index f38acda..b25db27 100644 (file)
@@ -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;
 }