Do not use C99 printf format specifiers and asprintf

This commit is contained in:
Tatsuya Kinoshita
2015-01-15 19:13:51 +09:00
parent ec8272d8fe
commit 5e9545756b
3 changed files with 98 additions and 22 deletions

2
map.c
View File

@@ -573,7 +573,7 @@ page_info_panel(Buffer *buf)
"<tr valign=top><td nowrap>Number of lines<td>",
Sprintf("%d", all)->ptr,
"<tr valign=top><td nowrap>Transferred bytes<td>",
Sprintf("%zu", buf->trbyte)->ptr, NULL);
Sprintf("%lu", (unsigned long)buf->trbyte)->ptr, NULL);
a = retrieveCurrentAnchor(buf);
if (a != NULL) {