]> git.ipfire.org Git - thirdparty/tar.git/commit
Prefer idx_t to size_t in tar.c
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Nov 2024 16:40:36 +0000 (09:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Nov 2024 06:47:23 +0000 (23:47 -0700)
commit303ac16ec01107af6952bee4ccf0d646079a860e
treedaac2df422736175ff12b90952bfcd59a72a9dd1
parent6df7a7243409d56d7acdeb60d1a819e1012f542c
Prefer idx_t to size_t in tar.c

* src/tar.c (strip_name_components, archive_names)
(allocated_archive_names, tar_list_quoting_styles)
(expand_pax_option, parse_opt):
Prefer idx_t to size_t.
(decode_options): Use a static word rather than going
to to the bother of dynamically allocating an array.
(main): Do not preallocate array.  Do not call ‘free’
on a pointer that now might be to static storage.
src/common.h
src/tar.c