In short_read, use %td not %lu

* src/buffer.c (short_read): Don’t assume sizes fit
in unsigned long.
This commit is contained in:
Paul Eggert
2024-08-12 16:10:16 -07:00
parent b3992e4ef8
commit 9b69d17e24

View File

@@ -965,10 +965,10 @@ short_read (size_t status)
&& record_start_block == 0 && status != 0
&& archive_is_dev ())
{
unsigned long rsize = status / BLOCKSIZE;
idx_t rsize = status / BLOCKSIZE;
WARN ((0, 0,
ngettext ("Record size = %lu block",
"Record size = %lu blocks",
ngettext ("Record size = %td block",
"Record size = %td blocks",
rsize),
rsize));
}