From: Esme Povirk esme@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++;