Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Mechanical conversion to use prefixcmp()
[gitweb.git]
/
http-fetch.c
diff --git
a/http-fetch.c
b/http-fetch.c
index 9f790a08e5d2760524ab7a34e98071062b3ed42f..d9a4561c8c8e2eff9fe5afcb19dafef3c04962aa 100644
(file)
--- a/
http-fetch.c
+++ b/
http-fetch.c
@@
-717,7
+717,7
@@
static int fetch_indices(struct alt_base *repo)
case 'P':
i++;
if (i + 52 <= buffer.posn &&
- !
strncmp(data + i, " pack-", 6
) &&
+ !
prefixcmp(data + i, " pack-"
) &&
!strncmp(data + i + 46, ".pack\n", 6)) {
get_sha1_hex(data + i + 6, sha1);
setup_index(repo, sha1);