diff options
author | lemon <lsof@mailbox.org> | 2022-02-08 12:37:45 +0100 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-02-18 00:00:57 +0000 |
commit | c5809a4296f852fe30a7356854d3d0758fa1bf7f (patch) | |
tree | 03a60ac0f03abae8795a1abe03ce045fa4de53dc /filter.c | |
parent | Allow to give readme head from query (diff) | |
download | cgit-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