about summary refs log tree commit diff stats
path: root/ui-blame.h
diff options
context:
space:
mode:
authorlemon2022-02-08 12:37:45 +0100
committerJune McEnroe2022-02-18 00:00:57 +0000
commitc5809a4296f852fe30a7356854d3d0758fa1bf7f (patch)
tree03a60ac0f03abae8795a1abe03ce045fa4de53dc /ui-blame.h
parentAllow to give readme head from query (diff)
downloadcgit-c5809a4296f852fe30a7356854d3d0758fa1bf7f.tar.gz
cgit-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 'ui-blame.h')
0 files changed, 0 insertions, 0 deletions