]> git.ipfire.org Git - thirdparty/coreutils.git/commit
od: fix issues with recent format string changes
authorPádraig Brady <P@draigBrady.com>
Tue, 1 Aug 2023 12:30:02 +0000 (13:30 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 1 Aug 2023 12:30:02 +0000 (13:30 +0100)
commit89c8c5fff30af021433139c89de389ee4af7dfc5
tree0ef71832968742b69d9047c5a49302021c5f5cc6
parent0b2796750ff68eb58616655236d7003f6d30223a
od: fix issues with recent format string changes

* src/ioblksize.h: Avoid syntax check with redundant idx.h inclusion.
* src/od.c (FMT_BYTES_ALLOCATED): Increase by two to avoid:
  error: '%s' directive writing between 1 and 2 bytes into a region
  of size between 1 and 4 [-Werror=format-overflow=]
(maint): Use %td to print idx_t rather than invalid %jt format.
src/ioblksize.h
src/od.c