projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into next
[git.git]
/
apply.c
diff --git
a/apply.c
b/apply.c
index
849a8b4
..
179b3bb
100644
(file)
--- 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;
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))
const struct opentry *p = optable + i;
int oplen = strlen(p->str);
if (len < oplen || memcmp(p->str, line, oplen))