X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=apply.c;h=179b3bbd00fc6da726491639920ba6540c9b3c71;hb=2fc27528f6d3f8c90d9ea38c8c70c83fbfe523d7;hp=849a8b4485e65c7eac315daca60b781965a1d22e;hpb=806b8198cdbd3c838d7cbd94f4f256aa71389891;p=git.git diff --git a/apply.c b/apply.c index 849a8b44..179b3bbd 100644 --- a/apply.c +++ b/apply.c @@ -651,7 +651,7 @@ static int parse_git_header(char *line, int len, unsigned int size, struct patch len = linelen(line, size); if (!len || line[len-1] != '\n') break; - for (i = 0; i < sizeof(optable) / sizeof(optable[0]); i++) { + for (i = 0; i < ARRAY_SIZE(optable); i++) { const struct opentry *p = optable + i; int oplen = strlen(p->str); if (len < oplen || memcmp(p->str, line, oplen))