]> git.ipfire.org Git - thirdparty/coreutils.git/commit
od: fix '+N.' bug
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Jun 2025 00:29:22 +0000 (17:29 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Jun 2025 04:00:41 +0000 (21:00 -0700)
commit66464e61f549e9f2fd35f82567345721798288f9
tree911b72ead2580b0ae2a8b5f3a3cc508343c99ae2
parent88f30ee0a5c355701914d4446dc7ec729a344fa2
od: fix '+N.' bug

* src/od.c (parse_old_offset): First arg is now char *,
not char const *.  If a decimal number, temporarily
modify the string so that xstrtoumax does not complain
about the '.'.
* tests/od/od.pl: Test for the bug.
NEWS
src/od.c
tests/od/od.pl