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:
Jacek Caban 2017-06-14 11:43:51 +02:00 committed by Alexandre Julliard
parent 1ba1821949
commit 19cb65b156
1 changed files with 1 additions and 1 deletions

View File

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