]> granicus.if.org Git - mutt/commitdiff
Fix some sloppiness-induced, but harmless, nonsense.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 19 Oct 1999 15:34:04 +0000 (15:34 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 19 Oct 1999 15:34:04 +0000 (15:34 +0000)
imap/auth.c

index 524e8d19e4a5eaf08e5f4153e561505cbe920189..b4aa06bbd1acd2838b8146991a75ac0e8972b547 100644 (file)
@@ -400,7 +400,7 @@ static int imap_auth_cram_md5 (IMAP_DATA* idata, const char* user,
   return -1;
 }
 
-/* this is basically a stripped-down version of the anonymous method. */
+/* this is basically a stripped-down version of the cram-md5 method. */
 
 static int imap_auth_anon (IMAP_DATA* idata)
 {
@@ -427,9 +427,8 @@ static int imap_auth_anon (IMAP_DATA* idata)
     return -1;
   }
 
-  strfcpy (ibuf, "ZHVtbXkK", sizeof (ibuf));   /* base64 ("dummy") */
+  strfcpy (ibuf, "ZHVtbXkK\r\n", sizeof (ibuf));       /* base64 ("dummy") */
 
-  strcpy (ibuf + strlen (ibuf), "\r\n");
   mutt_socket_write (idata->conn, ibuf);
 
   if (mutt_socket_read_line_d (ibuf, LONG_STRING, idata->conn) < 0)