[Goodies-commits] r5250 - xfce4-mailwatch-plugin/trunk/libmailwatch-core

Brian Tarricone kelnos at xfce.org
Sat Aug 16 11:26:29 CEST 2008


Author: kelnos
Date: 2008-08-16 09:26:29 +0000 (Sat, 16 Aug 2008)
New Revision: 5250

Modified:
   xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c
Log:
fix cram-md5 support

Modified: xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c
===================================================================
--- xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c	2008-08-16 08:50:52 UTC (rev 5249)
+++ xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-mailbox-imap.c	2008-08-16 09:26:29 UTC (rev 5250)
@@ -183,6 +183,8 @@
                                    error->message);
         g_error_free(error);
     }
+    buf[recvd] = '\n';
+    buf[++recvd] = 0;
     
     return recvd;
 }
@@ -297,9 +299,7 @@
             gchar *p, *response_base64;
 
             /* we got a challenge */
-            p = strstr(buf, "\r\n");
-            if(!p)
-                p = strstr(buf, "\n");
+            p = strstr(buf, "\n");
             if(!p) {
                 DBG("cram-md5 challenge wasn't a full line?");
                 goto cleanuperr;




More information about the Goodies-commits mailing list