diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-04-12 15:56:05 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-04-12 15:56:05 +0300 |
commit | f7065aa9ae54ce0d1772fd2e6f0e0b6862a50b71 (patch) | |
tree | b13faccd941622e2c8ee561d18f00806ae53888d /coreutils | |
parent | 8696f5d380209e6aba13ffc52eced9239510b275 (diff) |
shuf: fix pfx_len calculation
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/shuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/shuf.c b/coreutils/shuf.c index 3483a289b..107899a10 100644 --- a/coreutils/shuf.c +++ b/coreutils/shuf.c @@ -138,7 +138,7 @@ int shuf_main(int argc, char **argv) a--; b--; } - pfx_len = a - opt_i_str; /* can end up being 0 */ + pfx_len = a - pfx; /* can end up being 0 */ padding_width -= pfx_len; } else { /* Undo leading zero 'eating' (think "0-9") */ |