summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2006-03-01 05:39:41 +0000
committer"Vladimir N. Oleynik"2006-03-01 05:39:41 +0000
commit325da7b509e25cbb26bfc77418b27d397cbc0e4d (patch)
treee2c76ea4cb381af9f25cfbb5b82c60fc311ccf8d
parent5c2b238b3a99442d6445faf881e1557413e044c6 (diff)
downloadbusybox-325da7b509e25cbb26bfc77418b27d397cbc0e4d.zip
busybox-325da7b509e25cbb26bfc77418b27d397cbc0e4d.tar.gz
use bb_xstrndup vs strndup. Thanks rfelker.
-rw-r--r--archival/libunarchive/get_header_tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index 19793b7..eeabf3f 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;