http://bugzilla.spamassassin.org/show_bug.cgi?id=3506
------- Additional Comments From [EMAIL PROTECTED] 2004-07-27 14:16 ------- Created an attachment (id=2182) --> (http://bugzilla.spamassassin.org/attachment.cgi?id=2182&action=view) patch to fix bug, as described below This patch fixes the underlying bug by declaring bytesread to be int instead of size_t so that the test if it is <=0 works properly in all compilers. It also removes all mention of ssize_t, using int instead and removing the conditional declarations of the ssize_t typedef. That simplifies the code around which this bug occurred. It also makes two precautionary changes: Move the test for timeout to before testing the character that was read, and set the return variable *lenp even when there is a timeout. Both should never have caused a problem if the calling program behaves properly, but were wrong so I'm fixing them. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.