Do not risk writing over the end of the buffer when it ends in #
authornicm <nicm@openbsd.org>
Mon, 3 Jul 2023 10:48:26 +0000 (10:48 +0000)
committernicm <nicm@openbsd.org>
Mon, 3 Jul 2023 10:48:26 +0000 (10:48 +0000)
commit2cba1c74a7ed62d822e0b9c4ed7f3ba57ecec633
tree62e635cb933d59c18a33a8239f2a2203b1416477
parent7551d11f806b438be2275534b742b03f59091085
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.
usr.bin/tmux/format.c