svn commit: trunk/busybox/archival/libunarchive
vodz at busybox.net
vodz at busybox.net
Wed Mar 1 05:39:41 UTC 2006
Author: vodz
Date: 2006-02-28 21:39:41 -0800 (Tue, 28 Feb 2006)
New Revision: 14384
Log:
use bb_xstrndup vs strndup. Thanks rfelker.
Modified:
trunk/busybox/archival/libunarchive/get_header_tar.c
Changeset:
Modified: trunk/busybox/archival/libunarchive/get_header_tar.c
===================================================================
--- trunk/busybox/archival/libunarchive/get_header_tar.c 2006-03-01 05:34:32 UTC (rev 14383)
+++ trunk/busybox/archival/libunarchive/get_header_tar.c 2006-03-01 05:39:41 UTC (rev 14384)
@@ -109,7 +109,7 @@
} 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;
More information about the busybox-cvs
mailing list