]> git.ipfire.org Git - thirdparty/tar.git/commit
Fewer uses of size_t in checkpoint.c
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Nov 2024 02:53:25 +0000 (19:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Nov 2024 06:47:23 +0000 (23:47 -0700)
commitf9ed22de9b0603b787e47e2f8c1220d96ad323ff
tree9b51f51a5b04e181177a75493189daa805406875
parent78dd7bf0bcdd125821ce91fa8f73ec967414f76e
Fewer uses of size_t in checkpoint.c

* src/checkpoint.c (copy_string_unquote, getarg)
(format_checkpoint_string): Prefer idx_t to size_t.
(copy_string_unquote): Simplify by using ximemdup0.
(getarg): Avoid quadratic reallocation behavior by
using xpalloc.
src/checkpoint.c