From 19cb65b156a77f0cac09ed755abea50febb2e0a1 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 14 Jun 2017 11:43:51 +0200 Subject: [PATCH] wininet/tests: Fixed potential buffer overflow (coverity). Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/wininet/tests/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index 8bb925f54dc..a3a09800c04 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -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;