diff options
author | pixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-10-28 05:10:59 (EDT) |
---|---|---|
committer | pixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-10-28 05:10:59 (EDT) |
commit | 53a42ce9e6cd906013c8d478751f496f2b367e5f (patch) | |
tree | 09ffb8381e78aa8088645c07f4cbf232805be993 /libbb | |
parent | 84552e64fa6d42931a5c64c20acc580e9bb6b8bd (diff) |
Fix implicit declaration of strndup
s/strndup/xstrndup/
Thanks to Graham Gower <graham.gower@gmail.com>
git-svn-id: http://opkg.googlecode.com/svn/trunk@224 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/unarchive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c index a2ae0cb..782efd0 100644 --- a/libbb/unarchive.c +++ b/libbb/unarchive.c @@ -621,7 +621,7 @@ file_header_t *get_header_tar(FILE *tar_stream) if (tar.formated.prefix[0]) { char *temp = tar_entry->name; - char *prefixTemp = strndup(tar.formated.prefix, 155); + char *prefixTemp = xstrndup(tar.formated.prefix, 155); tar_entry->name = concat_path_file(prefixTemp, temp); free(temp); free(prefixTemp); |