1
0
mirror of https://git.tukaani.org/xz.git synced 2026-10-31 03:14:56 +00:00

xz: Mask the multiplier suffix in str_to_uint64() error message

A similar error message in the same function was masked in the
previous commit 7e7bb6c21cf9.

Fixes: https://github.com/tukaani-project/xz/pull/222
This commit is contained in:
rootvector2 2026-05-27 23:51:52 +05:30 committed by Lasse Collin
parent 7e7bb6c21c
commit d0d380797e
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -154,7 +154,7 @@ str_to_uint64(const char *name, const char *value, uint64_t min, uint64_t max)
if (multiplier == 0) {
message(V_ERROR, _("%s: Invalid multiplier suffix"),
value - 1);
tuklib_mask_nonprint(value - 1));
message_fatal(_("Valid suffixes are 'KiB' (2^10), "
"'MiB' (2^20), and 'GiB' (2^30)."));
}