diff options
author | Vincent Sanders <vince@kyllikki.org> | 2021-01-31 23:30:07 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2021-01-31 23:30:07 +0000 |
commit | bca82dfe83530c9994259833214f1bc097c5a685 (patch) | |
tree | 4b874d6915258f8c87dca7a91cff6bb556d38ac8 /content/handlers | |
parent | 27b178b04bdd12f02934b9eb0b9a5a00326e4ad1 (diff) | |
download | netsurf-bca82dfe83530c9994259833214f1bc097c5a685.tar.gz netsurf-bca82dfe83530c9994259833214f1bc097c5a685.tar.bz2 |
do not count the null terminator in list counter style length formatting
Diffstat (limited to 'content/handlers')
-rw-r--r-- | content/handlers/html/list_counter_style.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |