From bca82dfe83530c9994259833214f1bc097c5a685 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 31 Jan 2021 23:30:07 +0000 Subject: do not count the null terminator in list counter style length formatting --- content/handlers/html/list_counter_style.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/handlers/html') diff --git a/content/handlers/html/list_counter_style.c b/content/handlers/html/list_counter_style.c index d2be0f770..af643df80 100644 --- a/content/handlers/html/list_counter_style.c +++ b/content/handlers/html/list_counter_style.c @@ -523,7 +523,7 @@ list_counter_style_value(char *text, res = text_len-2; } text[res++] = '.'; - text[res++] = 0; + text[res] = 0; return res; } -- cgit v1.2.3