]> granicus.if.org Git - mutt/commitdiff
Fix buglet in logging from previous commit
authorBrendan Cully <brendan@kublai.com>
Sun, 19 Oct 2008 19:41:55 +0000 (12:41 -0700)
committerBrendan Cully <brendan@kublai.com>
Sun, 19 Oct 2008 19:41:55 +0000 (12:41 -0700)
mutt_socket.c

index 98bd01e634b5738fdc6897819122a038e4e67caa..e5655d768755914e659cdad37eeb6ed6c76aaf23 100644 (file)
@@ -137,7 +137,7 @@ int mutt_socket_write_d (CONNECTION *conn, const char *buf, int len, int dbg)
       return -1;
     }
 
-    if (rc < len)
+    if (rc < len - sent)
       dprint (3, (debugfile,
                   "mutt_socket_write: short write (%d of %d bytes)\n", rc,
                   len - sent));