diff options
author | Scarlett <scarlett@xavin.net> | 2015-01-15 09:54:54 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2015-01-15 09:58:35 +0000 |
commit | ec8272d8fe937293212adb126ad1827a2640c36c (patch) | |
tree | a52452e8c39f7ef0e09054e8bd1bb606e9ddba07 /map.c | |
parent | Merge branch 'bug/changelog' (diff) | |
download | w3m-ec8272d8fe937293212adb126ad1827a2640c36c.tar.gz w3m-ec8272d8fe937293212adb126ad1827a2640c36c.zip |
Correct printf arguments and use asprintf
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2
* Str.c: Use asprintf() instead of rolling our own printf string
length detection.
* cookie.c: Pass the char pointer in the string struct to printf %s
instead of the string struct itself.
Print time_t using %lld instead of %ld to allow for 64-bit time_t.
* main.c: Print a long int using the correct format specifier.
* map.c: Print size_t using the correct format specifier.
Diffstat (limited to '')
-rw-r--r-- | map.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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("%d", buf->trbyte)->ptr, NULL); + Sprintf("%zu", buf->trbyte)->ptr, NULL); a = retrieveCurrentAnchor(buf); if (a != NULL) { |