From 325da7b509e25cbb26bfc77418b27d397cbc0e4d Mon Sep 17 00:00:00 2001 From: "\"Vladimir N. Oleynik\"" Date: Wed, 1 Mar 2006 05:39:41 +0000 Subject: use bb_xstrndup vs strndup. Thanks rfelker. --- archival/libunarchive/get_header_tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 19793b718..eeabf3f5b 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c @@ -109,7 +109,7 @@ extern char get_header_tar(archive_handle_t *archive_handle) } else #endif { - file_header->name = strndup(tar.formated.name,100); + file_header->name = bb_xstrndup(tar.formated.name,100); if (tar.formated.prefix[0]) { char *temp = file_header->name; -- cgit v1.2.3