[PATCH] wininet: Increase user size to 'UNLEN + 1' in create_cookie_url().
Serge Gautherie
winehq-git_serge_180711 at gautherie.fr
Wed Jul 1 09:34:18 CDT 2020
Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
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
More information about the wine-devel
mailing list