X-Git-Url: http://rtime.felk.cvut.cz/gitweb/git.git/blobdiff_plain/b30ccd757354ea09b41e4359b0a5ab429d12f02e..HEAD:/patch-delta.c diff --git a/patch-delta.c b/patch-delta.c index e02e13bd4..d218faa02 100644 --- a/patch-delta.c +++ b/patch-delta.c @@ -33,8 +33,7 @@ void *patch_delta(const void *src_buf, unsigned long src_size, /* 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) {