summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5bf9219)
raw | patch | inline | side by side (parent: 5bf9219)
author | Ilari Liusvaara <ilari.liusvaara@elisanet.fi> | |
Tue, 26 Jan 2010 18:24:13 +0000 (20:24 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 26 Jan 2010 20:57:59 +0000 (12:57 -0800) |
Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
patch-delta.c | patch | blob | history |
diff --git a/patch-delta.c b/patch-delta.c
index e02e13bd4eb2a92626c2d6f9cbf264abb15de9c5..d218faa02bd12b0e6a0df298a6a0e5787e46d93f 100644 (file)
--- a/patch-delta.c
+++ b/patch-delta.c
/* now the result size */
size = get_delta_hdr_size(&data, top);
- dst_buf = xmalloc(size + 1);
- dst_buf[size] = 0;
+ dst_buf = xmallocz(size);
out = dst_buf;
while (data < top) {