From 70eabdedd56e2be6c23a13eeffd8bf4c136ed7d1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 11 May 2000 21:49:54 +0000 Subject: [PATCH] Fixed buffer overflow. --- dlls/shell32/shlfolder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shlfolder.c b/dlls/shell32/shlfolder.c index 641e300aa28..84c30ffbc2a 100644 --- a/dlls/shell32/shlfolder.c +++ b/dlls/shell32/shlfolder.c @@ -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); }