Fixed buffer overflow.

This commit is contained in:
Alexandre Julliard 2000-05-11 21:49:54 +00:00 committed by Alexandre Julliard
parent b905023c74
commit 70eabdedd5

View File

@ -2616,7 +2616,7 @@ static HRESULT WINAPI ISFPersistFolder2_Initialize(
/* set my path */
if (SHGetPathFromIDListA(pidl, sTemp))
{
This->sMyPath = SHAlloc(strlen(sTemp+1));
This->sMyPath = SHAlloc(strlen(sTemp)+1);
strcpy(This->sMyPath, sTemp);
}