]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: simplify sprintf usage
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Jul 2021 01:54:10 +0000 (18:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Jul 2021 07:59:36 +0000 (00:59 -0700)
commitc09b25dd3f83f2db6d6dde57146b2ba747073308
tree9e1aef48bdb9ffe10fcf091af60959f0a1f25fa4
parent558959daa9fb04095c40153c494b5977ab675160
ls: simplify sprintf usage

* src/ls.c (format_user_or_group_width, print_long_format):
Use return value from sprintf instead of calling strlen on
the resulting buffer, or inferring the length some other way.
src/ls.c