Ticket #7729: 216239.txt

File 216239.txt, 244 bytes (added by nickm, 7 years ago)
Line 
1
2-  if (more_to_read && result == at_most) {
3+  if (more_to_read && result >= at_most &&
4+      (more_to_read = more_to_read - (result - at_most)) > 0) {
5     slack_in_buf = buf_slack(conn->inbuf);
6     at_most = more_to_read;
7     goto again;