From 17031bf421b21ae8b792d2b04c0ad5f997244865 Mon Sep 17 00:00:00 2001 From: Piers Lauder Date: Mon, 24 Jun 2002 23:35:37 +0000 Subject: [PATCH] fix incorrect size calc. in IMAP4_SSL.read --- Lib/imaplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 7afd66535af..0817da9d237 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -1059,7 +1059,7 @@ class IMAP4_SSL(IMAP4): # sslobj.read() sometimes returns < size bytes data = self.sslobj.read(size) while len(data) < size: - data += self.sslobj.read(len(data)-size) + data += self.sslobj.read(size-len(data)) return data