Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
receive-pack: do not reuse old_sha1[] for other things
[gitweb.git]
/
builtin
/
apply.c
diff --git
a/builtin/apply.c
b/builtin/apply.c
index 9f8f5bac072661adf9b911b091ab4202796e9a9e..be2b4ce2fd91640379b0a65d0aa90238d7edfd64 100644
(file)
--- a/
builtin/apply.c
+++ b/
builtin/apply.c
@@
-1075,7
+1075,7
@@
static int gitdiff_index(const char *line, struct patch *patch)
line = ptr + 2;
ptr = strchr(line, ' ');
- eol = strchr(line, '\n');
+ eol = strchr
nul
(line, '\n');
if (!ptr || eol < ptr)
ptr = eol;