From: Gisle Vanem Date: Thu, 28 Oct 2004 13:18:09 +0000 (+0000) Subject: Fixed _write() arguments. X-Git-Tag: curl-7_12_3~259 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4245400ae4c2623c49280ffeb295d4eb6790f7e2;p=thirdparty%2Fcurl.git Fixed _write() arguments. --- diff --git a/src/main.c b/src/main.c index 1a1d15ed4b..d0c762081c 100644 --- a/src/main.c +++ b/src/main.c @@ -230,7 +230,7 @@ static int ftruncate (int fd, curl_off_t where) if (_lseeki64(fd, where, SEEK_SET) < 0) return -1; - if (_write(fd, curr, SEEK_SET) < 0) + if (_write(fd, 0, 0) < 0) rc = -1; _lseeki64(fd, curr, SEEK_SET); return rc;