diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-01-18 09:28:42 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-01-18 09:28:42 -0800 |
commit | c7904b06f57f8ad28f2f288267744231334e5973 (patch) | |
tree | 1c777b0fd81cb44d2dc50a95c915491b04bf6670 /src/man.c | |
parent | ac812214f6fa81b201b8fcf3779ed8d2c3cfacf7 (diff) | |
parent | 7e1f8b8e49ca291a7757c55a8e02fc7a85d1434c (diff) |
Merge branch 'mbenelli-master'
Diffstat (limited to 'src/man.c')
-rw-r--r-- | src/man.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -110,8 +110,9 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node, tmp = tmp->prev; list_number += 1; } - char list_number_s[20]; - sprintf(list_number_s, "\"%d.\" 4", list_number); + const size_t LIST_NUMBER_SIZE = 20; + char list_number_s[LIST_NUMBER_SIZE]; + snprintf(list_number_s, LIST_NUMBER_SIZE, "\"%d.\" 4", list_number); LIT(list_number_s); } CR(); |