fix incorrect size calc. in IMAP4_SSL.read

This commit is contained in:
Piers Lauder 2002-06-24 23:35:37 +00:00
parent 6fe3d7009e
commit 17031bf421
1 changed files with 1 additions and 1 deletions

View File

@ -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