projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Wrap synopsis lines and use [verse] to keep formatting
[git.git]
/
patch-delta.c
diff --git
a/patch-delta.c
b/patch-delta.c
index
26281ea
..
98c27be
100644
(file)
--- a/
patch-delta.c
+++ b/
patch-delta.c
@@
-34,9
+34,10
@@
void *patch_delta(void *src_buf, unsigned long src_size,
/* now the result size */
size = get_delta_hdr_size(&data);
- dst_buf = malloc(size);
+ dst_buf = malloc(size
+ 1
);
if (!dst_buf)
return NULL;
+ dst_buf[size] = 0;
out = dst_buf;
while (data < top) {