]> granicus.if.org Git - curl/commitdiff
Fixed _write() arguments.
authorGisle Vanem <gvanem@broadpark.no>
Thu, 28 Oct 2004 13:18:09 +0000 (13:18 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Thu, 28 Oct 2004 13:18:09 +0000 (13:18 +0000)
src/main.c

index 1a1d15ed4b05408866a68088203612815d0ec77d..d0c762081c040e6e52220d7f316ecb6fe2017332 100644 (file)
@@ -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;