9 Sep
2024
9 Sep
'24
7:33 p.m.
From: Esme Povirk <esme(a)codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57163 --- programs/msiexec/msiexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c index 065730c7ff1..e83f4b5f33e 100644 --- a/programs/msiexec/msiexec.c +++ b/programs/msiexec/msiexec.c @@ -637,7 +637,7 @@ static WCHAR *remove_quotes( const WCHAR *filename ) int len = wcslen( filename ); WCHAR *ret; - if (!(ret = malloc( len * sizeof(WCHAR) ))) return NULL; + if (!(ret = malloc( (len + 1) * sizeof(WCHAR) ))) return NULL; if (*ptr == '"') { ptr++; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6464