aboutsummaryrefslogtreecommitdiffstats
path: root/src/set-fields.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-11-11 00:17:11 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2023-11-11 00:17:49 -0800
commit3e0d7787e67d4f732298d99eee772fc2631ddfb8 (patch)
tree77e13d3eeea8cfe35f9e9c52fd3fca6c71c64094 /src/set-fields.c
parentmaint: port randread to FreeBSD 14 (diff)
downloadcoreutils-3e0d7787e67d4f732298d99eee772fc2631ddfb8.tar.gz
coreutils-3e0d7787e67d4f732298d99eee772fc2631ddfb8.zip
pinky: fix string size calculation
* src/pinky.c (count_ampersands): Simplify and return idx_t. (create_fullname): Compute proper destination string size, basically, by adding (ulen - 1) * ampersands rather than ulen * (ampersands - 1). Problem found on CHERI-64.
Diffstat (limited to 'src/set-fields.c')
0 files changed, 0 insertions, 0 deletions