projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Teach git push .git/branches shorthand
[git.git]
/
diff-delta.c
diff --git
a/diff-delta.c
b/diff-delta.c
index
67f6081
..
b2ae7b5
100644
(file)
--- a/
diff-delta.c
+++ b/
diff-delta.c
@@
-306,12
+306,13
@@
void *diff_delta(void *from_buf, unsigned long from_size,
*orig = i;
}
*orig = i;
}
- /* next time around the largest possible output is 1 + 4 + 3 */
if (max_size && outpos > max_size) {
free(out);
delta_cleanup(&bdf);
return NULL;
}
if (max_size && outpos > max_size) {
free(out);
delta_cleanup(&bdf);
return NULL;
}
+
+ /* next time around the largest possible output is 1 + 4 + 3 */
if (outpos > outsize - 8) {
void *tmp = out;
outsize = outsize * 3 / 2;
if (outpos > outsize - 8) {
void *tmp = out;
outsize = outsize * 3 / 2;