From 38713951402f045334dc3d0e727f38589c07bdf5 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Tue, 28 Oct 2003 21:43:14 +0000 Subject: [PATCH] Fixed MSI buffer overflow. --- dlls/msi/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/table.c b/dlls/msi/table.c index 58719082a90..30cbfa007e1 100644 --- a/dlls/msi/table.c +++ b/dlls/msi/table.c @@ -457,7 +457,7 @@ static UINT msi_string2id( string_table *st, LPCWSTR buffer, UINT *id ) static LPWSTR strdupW( LPCWSTR str ) { - UINT len = lstrlenW( str ); + UINT len = lstrlenW( str ) + 1; LPWSTR ret = HeapAlloc( GetProcessHeap(), 0, len*sizeof (WCHAR) ); if( ret ) lstrcpyW( ret, str );