From 53a42ce9e6cd906013c8d478751f496f2b367e5f Mon Sep 17 00:00:00 2001 From: pixdamix Date: Wed, 28 Oct 2009 09:10:59 +0000 Subject: [PATCH] Fix implicit declaration of strndup s/strndup/xstrndup/ Thanks to Graham Gower git-svn-id: http://opkg.googlecode.com/svn/trunk@224 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libbb/unarchive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbb/unarchive.c b/libbb/unarchive.c index a2ae0cb..782efd0 100644 --- a/libbb/unarchive.c +++ b/libbb/unarchive.c @@ -621,7 +621,7 @@ file_header_t *get_header_tar(FILE *tar_stream) if (tar.formated.prefix[0]) { char *temp = tar_entry->name; - char *prefixTemp = strndup(tar.formated.prefix, 155); + char *prefixTemp = xstrndup(tar.formated.prefix, 155); tar_entry->name = concat_path_file(prefixTemp, temp); free(temp); free(prefixTemp); -- 2.30.2