about summary refs log tree commit diff
path: root/cgit.mk
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-02-08 12:37:45 +0100
committerJune McEnroe <june@causal.agency>2022-02-18 00:00:57 +0000
commitc5809a4296f852fe30a7356854d3d0758fa1bf7f (patch)
tree03a60ac0f03abae8795a1abe03ce045fa4de53dc /cgit.mk
parentAllow to give readme head from query (diff)
downloadcgit-pink-c5809a4296f852fe30a7356854d3d0758fa1bf7f.tar.gz
cgit-pink-c5809a4296f852fe30a7356854d3d0758fa1bf7f.zip
Fix fmt() off-by-one error
vsnprintf returns the byte count of the formatted output not including
the null terminator, so in the case that len == 1024 the last character
of the output was being truncated and not detected by the later check.
Changing the greater than comparison to greater than or equal fixes this
edge case.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions