07c23da28f
buffer. If snprintf truncated the output, the length returned will be greater and we'll write trash. Just call strlen instead. (And since what we're doing is writing progress messages to the user, checking carefully for truncation isn't really worthwhile either.) Spotted when attending to PR 50998 from David Binderman; the issue there (computation of an unused value) popped up because one of the prints was already calling strlen. |
||
---|---|---|
.. | ||
ar_io.c | ||
ar_subs.c | ||
buf_subs.c | ||
cpio.1 | ||
cpio.c | ||
cpio.h | ||
dumptar.c | ||
extern.h | ||
file_subs.c | ||
ftree.c | ||
ftree.h | ||
gen_subs.c | ||
getoldopt.c | ||
Makefile | ||
options.c | ||
options.h | ||
pat_rep.c | ||
pat_rep.h | ||
pax.1 | ||
pax.c | ||
pax.h | ||
sel_subs.c | ||
sel_subs.h | ||
tables.c | ||
tables.h | ||
tar.1 | ||
tar.c | ||
tar.h | ||
tty_subs.c |