From db5c0e99b433ae75c6112e10a384082d35fb5918 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 19 Oct 2020 20:30:10 +0100 Subject: reqs: fix UB passing ssize_t to format string expecting int --- src/reqs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reqs.c b/src/reqs.c index f6a9233..4d49583 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -1454,8 +1454,8 @@ get_request_entity(struct conn_s *connptr) ret = -1; } else { log_message (LOG_INFO, - "Read request entity of %d bytes", - nread); + "Read request entity of %ld bytes", + (long) nread); ret = 0; } } else { -- cgit v1.2.3