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
1 changed files with 1 additions and 1 deletions

View File

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