mirror of
https://github.com/curl/curl.git
synced 2025-03-13 15:37:04 +08:00
Fixed _write() arguments.
This commit is contained in:
parent
629bba6b35
commit
4245400ae4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user