mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Fixed buffer overflow.
This commit is contained in:
parent
b905023c74
commit
70eabdedd5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user