do not count the null terminator in list counter style length formatting

This commit is contained in:
Vincent Sanders 2021-01-31 23:30:07 +00:00
parent 27b178b04b
commit bca82dfe83
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ list_counter_style_value(char *text,
res = text_len-2;
}
text[res++] = '.';
text[res++] = 0;
text[res] = 0;
return res;
}