mirror of
https://github.com/mirror/wget.git
synced 2025-01-16 15:21:14 +08:00
* src/http.c (print_response_line): Fixed comparison
Introduced in 68868bbb37
(13.2.2020).
Reported-by: Gisle Vanem
This commit is contained in:
parent
aba6e67eb7
commit
d08bdbc878
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user