* src/http.c (print_response_line): Fixed comparison

Introduced in 68868bbb37 (13.2.2020).

Reported-by: Gisle Vanem
This commit is contained in:
Tim Rühsen 2020-02-22 08:46:02 +01:00
parent aba6e67eb7
commit d08bdbc878

View File

@ -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);