From: Daniel Stenberg Date: Thu, 16 Mar 2000 11:38:32 +0000 (+0000) Subject: now writers the headers with the data->fwrite() function as well X-Git-Tag: curl-6_5_1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8629719e0e032d35d4d46fd018ca2f85e2f334fe;p=thirdparty%2Fcurl.git now writers the headers with the data->fwrite() function as well --- diff --git a/lib/download.c b/lib/download.c index 68e6f308aa..055217c016 100644 --- a/lib/download.c +++ b/lib/download.c @@ -322,8 +322,8 @@ Transfer (struct UrlData *data, /* obviously, the header is requested to be written to this file: */ if((p - data->headerbuff) != - fwrite (data->headerbuff, 1, p - data->headerbuff, - data->writeheader)) { + data->fwrite (data->headerbuff, 1, p - data->headerbuff, + data->writeheader)) { failf (data, "Failed writing output"); return URG_WRITE_ERROR; } @@ -392,7 +392,8 @@ Transfer (struct UrlData *data, } if(data->writeheader) { /* the header is requested to be written to this file */ - if(hbuflen != fwrite (p, 1, hbuflen, data->writeheader)) { + if(hbuflen != data->fwrite (p, 1, hbuflen, + data->writeheader)) { failf (data, "Failed writing output"); return URG_WRITE_ERROR; }