From ec8272d8fe937293212adb126ad1827a2640c36c Mon Sep 17 00:00:00 2001 From: Scarlett Date: Thu, 15 Jan 2015 18:54:54 +0900 Subject: 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. --- map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'map.c') diff --git a/map.c b/map.c index 12701e7..116e71c 100644 --- a/map.c +++ b/map.c @@ -573,7 +573,7 @@ page_info_panel(Buffer *buf) "Number of lines", Sprintf("%d", all)->ptr, "Transferred bytes", - Sprintf("%d", buf->trbyte)->ptr, NULL); + Sprintf("%zu", buf->trbyte)->ptr, NULL); a = retrieveCurrentAnchor(buf); if (a != NULL) { -- cgit v1.2.3