From d08bdbc8782a8416efb2ac226ebade1be9c29f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Sat, 22 Feb 2020 08:46:02 +0100 Subject: [PATCH] * src/http.c (print_response_line): Fixed comparison Introduced in 68868bbb3737d26c197f39edafc5d526334426b0 (13.2.2020). Reported-by: Gisle Vanem --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index 36537b86..9918b34a 100644 --- a/src/http.c +++ b/src/http.c @@ -871,7 +871,7 @@ print_response_line (const char *prefix, const char *b, const char *e) char buf[1024], *copy; size_t len = e - b; - if (len < buf) + if (len < sizeof (buf)) copy = buf; else copy = xmalloc(len + 1);