wininet/tests: Fixed potential buffer overflow (coverity).
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1ba1821949
commit
19cb65b156
|
@ -5212,7 +5212,7 @@ static void test_redirect(int port)
|
|||
"Content-Length: 0\r\n"
|
||||
"\r\n");
|
||||
|
||||
size = server_read_data(buf, sizeof(buf));
|
||||
size = server_read_data(buf, sizeof(buf) - 1);
|
||||
buf[size] = 0;
|
||||
p = strstr(buf, "\r\n");
|
||||
if(p) *p = 0;
|
||||
|
|
Loading…
Reference in New Issue