From: pixdamix Date: Wed, 28 Oct 2009 09:10:59 +0000 (+0000) Subject: Fix implicit declaration of strndup X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=53a42ce9e6cd906013c8d478751f496f2b367e5f;p=oweals%2Fopkg-lede.git 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 --- 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);