diff options
author | 2008-12-30 12:15:32 +0000 | |
---|---|---|
committer | 2008-12-30 12:15:32 +0000 | |
commit | 39ae41684ff78be9610cbf8bc435783676a3abf6 (patch) | |
tree | 834a5f579feb9d4fd6df2f4dd9c0154bf6225477 /paxinc.c | |
parent | eat trailing whitespace (diff) | |
download | pax-utils-39ae41684ff78be9610cbf8bc435783676a3abf6.tar.gz pax-utils-39ae41684ff78be9610cbf8bc435783676a3abf6.tar.bz2 pax-utils-39ae41684ff78be9610cbf8bc435783676a3abf6.zip |
use xmalloc() rather than malloc()
Diffstat (limited to 'paxinc.c')
-rw-r--r-- | paxinc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2003-2007 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxinc.c,v 1.10 2008/10/19 18:55:33 grobian Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxinc.c,v 1.11 2008/12/30 12:15:32 vapier Exp $ * * Copyright 2005-2007 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org> @@ -84,7 +84,7 @@ close_and_ret: } len = atoi(ret.buf.formatted.size); /* we will leak this memory */ - ar->extfn = malloc(sizeof(char) * (len + 1)); + ar->extfn = xmalloc(sizeof(char) * (len + 1)); if (read(ar->fd, ar->extfn, len) != len) goto close_and_ret; ar->extfn[len--] = '\0'; |