aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2004-10-28 13:18:09 +0000
committerGisle Vanem <gvanem@broadpark.no>2004-10-28 13:18:09 +0000
commit4245400ae4c2623c49280ffeb295d4eb6790f7e2 (patch)
tree19ac1684cf324d4f21354da9c42a1d94400289ba
parent629bba6b352768e0e39e4f18d53e7c1228e2222b (diff)
Fixed _write() arguments.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 1a1d15ed4..d0c762081 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;