aboutsummaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-20 01:55:07 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-20 22:03:15 -0800
commit1968d77dd632a9a9e5c6f5681649e5e65ed13088 (patch)
tree3321cc876345e8f134b6e1b2ceb556d0061ff2c5 /http-push.c
parent599065a3bb94ae9f48e3808b8fafc8443017af28 (diff)
downloadgit-1968d77dd632a9a9e5c6f5681649e5e65ed13088.tar.gz
git-1968d77dd632a9a9e5c6f5681649e5e65ed13088.tar.xz
prefixcmp(): fix-up leftover strncmp().
There were instances of strncmp() that were formatted improperly (e.g. whitespace around parameter before closing parenthesis) that caused the earlier mechanical conversion step to miss them. This step cleans them up. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index eb77c9af4..9ad6fd00b 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1061,7 +1061,7 @@ static int fetch_indices(void)
i++;
if (i + 52 < buffer.posn &&
!prefixcmp(data + i, " pack-") &&
- !strncmp(data + i + 46, ".pack\n", 6)) {
+ !prefixcmp(data + i + 46, ".pack\n")) {
get_sha1_hex(data + i + 6, sha1);
setup_index(sha1);
i += 51;