about summary refs log tree commit diff
path: root/ui-tag.c
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 /ui-tag.c
parent129d8a1582b586718a64bbbef393d529b84c7b16 (diff)
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-tag.c')
0 files changed, 0 insertions, 0 deletions