From: msweet Date: Fri, 31 May 2013 13:29:59 +0000 (+0000) Subject: 13A459 Printing completely broken on MBP after upgrade... X-Git-Tag: release-1.7rc1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69518a8578eccd7c7113f53378d4d65c4ef8db00;p=thirdparty%2Fcups.git 13A459 Printing completely broken on MBP after upgrade to Cab Fix httpFlushWrite, which was incorrectly updating data_remaining. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11003 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/http.c b/cups/http.c index 046b20c522..8ac7674012 100644 --- a/cups/http.c +++ b/cups/http.c @@ -959,19 +959,8 @@ httpFlushWrite(http_t *http) /* I - Connection to server */ if (http->data_encoding == HTTP_ENCODING_CHUNKED) bytes = http_write_chunk(http, http->wbuffer, http->wused); else - { bytes = http_write(http, http->wbuffer, http->wused); - if (bytes > 0 && http->data_encoding == HTTP_ENCODING_LENGTH) - { - http->data_remaining -= bytes; - - if (http->data_remaining <= 0) - { - } - } - } - http->wused = 0; DEBUG_printf(("1httpFlushWrite: Returning %d, errno=%d.", bytes, errno));