aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2008-09-12 19:59:26 +0000
committerFabian Groffen <grobian@gentoo.org>2008-09-12 19:59:26 +0000
commitbd94070e0b9b4cca36bdad453439bfcde15d49e4 (patch)
tree4d01eddf54a2d3688e878c52b25200800665a634 /paxmacho.c
parentDon't remove macho stuff, we need it to be able to compile properly. (diff)
downloadpax-utils-bd94070e0b9b4cca36bdad453439bfcde15d49e4.tar.gz
pax-utils-bd94070e0b9b4cca36bdad453439bfcde15d49e4.tar.bz2
pax-utils-bd94070e0b9b4cca36bdad453439bfcde15d49e4.zip
Properly terminate the list of archs of a fat file
Diffstat (limited to 'paxmacho.c')
-rw-r--r--paxmacho.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/paxmacho.c b/paxmacho.c
index 31d03c8..a9d8caa 100644
--- a/paxmacho.c
+++ b/paxmacho.c
@@ -1,7 +1,7 @@
/*
* Copyright 2003-2008 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.7 2008/09/08 07:02:56 grobian Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.8 2008/09/12 19:59:26 grobian Exp $
*
* Copyright 2005-2007 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org>
@@ -307,6 +307,8 @@ fatobj *readmacho_buffer(const char *filename, char *buffer, size_t buffer_len)
fobj->filename = ret->filename;
fobj->base_filename = ret->base_filename;
fobj->len = ret->len;
+ } else {
+ fobj->next = NULL;
}
dptr += sizeof(struct fat_arch);
}