aboutsummaryrefslogtreecommitdiff
path: root/http-fetch.c
diff options
context:
space:
mode:
authorDana How <how@deathvalley.cswitch.com>2007-04-05 12:05:57 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-05 15:39:12 -0700
commitb5da24679ec73f458988523dce9dd17b4e9b0e02 (patch)
treeeeb13a8ba1cc6f0ed34814cf6896b5fb17dc6844 /http-fetch.c
parent79ee194e52a140412da475e102145bad80d5d00a (diff)
downloadgit-b5da24679ec73f458988523dce9dd17b4e9b0e02.tar.gz
git-b5da24679ec73f458988523dce9dd17b4e9b0e02.tar.xz
Fix lseek(2) calls with args 2 and 3 swapped
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'http-fetch.c')
-rw-r--r--http-fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 557b40322..09baedc18 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -198,7 +198,7 @@ static void start_object_request(struct object_request *obj_req)
SHA1_Init(&obj_req->c);
if (prev_posn>0) {
prev_posn = 0;
- lseek(obj_req->local, SEEK_SET, 0);
+ lseek(obj_req->local, 0, SEEK_SET);
ftruncate(obj_req->local, 0);
}
}