shuf: fix pfx_len calculation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
master
Denys Vlasenko 2023-04-12 14:56:05 +02:00
parent 8696f5d380
commit f7065aa9ae
1 changed files with 1 additions and 1 deletions

View File

@ -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") */