use bb_xstrndup vs strndup. Thanks rfelker.

This commit is contained in:
"Vladimir N. Oleynik" 2006-03-01 05:39:41 +00:00
parent 5c2b238b3a
commit 325da7b509

View File

@ -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;