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>
This commit is contained in:
@@ -718,7 +718,7 @@ static int fetch_indices(struct alt_base *repo)
|
||||
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(repo, sha1);
|
||||
i += 51;
|
||||
|
||||
Reference in New Issue
Block a user