From: Paul Eggert Date: Mon, 12 Aug 2024 23:10:16 +0000 (-0700) Subject: In short_read, use %td not %lu X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9b69d17e24ea6b4a243d8b833ef41a0653b33eda;p=thirdparty%2Ftar.git In short_read, use %td not %lu * src/buffer.c (short_read): Don’t assume sizes fit in unsigned long. --- diff --git a/src/buffer.c b/src/buffer.c index e7f1e264..eba9f674 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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)); }