Do not risk writing over the end of the buffer when it ends in #
commitac43186dff0f4e92a566987bb9108d6c5421e9ff
authornicm <nicm>
Mon, 3 Jul 2023 10:48:26 +0000 (3 10:48 +0000)
committernicm <nicm>
Mon, 3 Jul 2023 10:48:26 +0000 (3 10:48 +0000)
tree985a596b43b1cd806d2ff14f4d181b3e7028371f
parente79fb214f8001c309c9ae11eba5fcbbac97f1acf
Do not risk writing over the end of the buffer when it ends in #
(because strchr \0 will be non-NULL), reported by Robert Morris in
GitHub issue 3610.
format.c