chmod: pacify GCC 13
commit6c199713ed384d58e23671f58f646afcf06fabf8
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Apr 2023 00:14:54 +0000 (26 17:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Apr 2023 01:20:19 +0000 (26 18:20 -0700)
treecb1fa9982b94a814decf6d5ad4039d8d8b117dbb
parentd178b497542b19571dd6896db561c46ec2e451c3
chmod: pacify GCC 13

* src/chmod.c (main): Use xpalloc instead of X2REALLOC,
and make the corresponding variables signed instead of unsigned.
When reallocating the buffer, this grows it by a factor of 1.5, not 2.
This also pacifies gcc -Wanalyzer-null-dereference.
src/chmod.c