summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2021-01-31 23:30:07 +0000
committerVincent Sanders <vince@kyllikki.org>2021-01-31 23:30:07 +0000
commitbca82dfe83530c9994259833214f1bc097c5a685 (patch)
tree4b874d6915258f8c87dca7a91cff6bb556d38ac8 /content
parent27b178b04bdd12f02934b9eb0b9a5a00326e4ad1 (diff)
downloadnetsurf-bca82dfe83530c9994259833214f1bc097c5a685.tar.gz
netsurf-bca82dfe83530c9994259833214f1bc097c5a685.tar.bz2
do not count the null terminator in list counter style length formatting
Diffstat (limited to 'content')
-rw-r--r--content/handlers/html/list_counter_style.c2
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;
}