summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-10-19 20:30:10 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-10-19 20:30:10 +0100
commitdb5c0e99b433ae75c6112e10a384082d35fb5918 (patch)
treed0890df8f0728b294823b0d8a7d97deb6b05fbe9
parent8ebbd50cb2d5c20163272fe081fc58329fd896bd (diff)
reqs: fix UB passing ssize_t to format string expecting int
-rw-r--r--src/reqs.c4
1 files 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 {