From: Serge Gautherie Subject: [PATCH] wininet: Increase user size to 'UNLEN + 1' in create_cookie_url(). Message-Id: <20200701143418.2768-1-winehq-git_serge_180711@gautherie.fr> Date: Wed, 1 Jul 2020 16:34:18 +0200 Signed-off-by: Serge Gautherie --- dlls/wininet/cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c index b5f779b..4d0967b 100644 --- a/dlls/wininet/cookie.c +++ b/dlls/wininet/cookie.c @@ -147,7 +147,7 @@ static cookie_domain_t *get_cookie_domain(substr_t domain, BOOL create) static WCHAR *create_cookie_url(substr_t domain, substr_t path, substr_t *ret_path) { - WCHAR user[UNLEN], *p, *url; + WCHAR user[UNLEN + 1], *p, *url; DWORD len, user_len, i; static const WCHAR cookie_prefix[] = {'C','o','o','k','i','e',':'}; -- 2.10.0.windows.1