From af15a17a5a2476a4fd656d9e4bcdb1e134732962 Mon Sep 17 00:00:00 2001 From: "graham.gower" Date: Sun, 15 Nov 2009 09:11:43 +0000 Subject: [PATCH] malloc -> xmalloc git-svn-id: http://opkg.googlecode.com/svn/trunk@307 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libbb/unzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbb/unzip.c b/libbb/unzip.c index 20a4d74..88d2a0a 100644 --- a/libbb/unzip.c +++ b/libbb/unzip.c @@ -113,7 +113,7 @@ static void make_crc_table() /* initial shift register value */ crc = 0xffffffffL; - crc_table = (unsigned long *) malloc(256 * sizeof(unsigned long)); + crc_table = (unsigned long *) xmalloc(256 * sizeof(unsigned long)); /* Make exclusive-or pattern from polynomial (0xedb88320) */ for (i = 0; i < sizeof(p)/sizeof(int); i++) -- 2.25.1