aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-01 05:39:41 +0000
committervodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-01 05:39:41 +0000
commit7a66d919d24b5c5fc96c1e6bf377ff957bc4e03d (patch)
treee2c76ea4cb381af9f25cfbb5b82c60fc311ccf8d
parent6977b6a9731dbd4c6a9f26385a981cecbf0b4ab8 (diff)
downloadbusybox-w32-7a66d919d24b5c5fc96c1e6bf377ff957bc4e03d.tar.gz
busybox-w32-7a66d919d24b5c5fc96c1e6bf377ff957bc4e03d.tar.bz2
busybox-w32-7a66d919d24b5c5fc96c1e6bf377ff957bc4e03d.zip
use bb_xstrndup vs strndup. Thanks rfelker.
git-svn-id: svn://busybox.net/trunk/busybox@14384 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 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)
109 } else 109 } else
110#endif 110#endif
111 { 111 {
112 file_header->name = strndup(tar.formated.name,100); 112 file_header->name = bb_xstrndup(tar.formated.name,100);
113 113
114 if (tar.formated.prefix[0]) { 114 if (tar.formated.prefix[0]) {
115 char *temp = file_header->name; 115 char *temp = file_header->name;