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;
}