]> git.ipfire.org Git - thirdparty/tar.git/commit
Fewer uses of uintmax_t in xheader.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)
commita3ba452f40c5eeaab08fddf1110f6899758a432c
tree8fb84787f789e10a97ff55b8c6811bc5b478b5aa
parentd9da9389638dca8b0a94cf2b3458084928d5e267
Fewer uses of uintmax_t in xheader.c

* src/tar.h (struct xheader):
* src/xheader.c (xheader_string_end):
Use idx_t, not uintmax_t, for string length.
* src/xheader.c (xheader_string_add):
Avoid duplicate calls to strlen.
(xheader_string_end): Remove by-hand check for size overflow;
it’s not possible, as this is measuring allocated storage.
src/tar.h
src/xheader.c