]> git.ipfire.org Git - thirdparty/git.git/commit - wrapper.c
Add xmallocz()
authorIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Tue, 26 Jan 2010 18:24:12 +0000 (20:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jan 2010 20:57:53 +0000 (12:57 -0800)
commit5bf9219d01b16444b316fe764b58d15bd9265f74
treea218ec5aa622712e03dace7acce8aaf711a61636
parent35eabd1579726d594e84fc8328a5c87693dd065a
Add xmallocz()

Add routine for allocating NUL-terminated memory block without risking
integer overflow in addition of +1 for NUL byte.

[jc: with suggestion from Bill Lear]

Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
wrapper.c