From 3055239f69b19a3212ab8237c2c6a92ca674d3db Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 18 Feb 2008 19:37:27 +0000 Subject: [PATCH] advpack: Fix buffer overrun in convert_file_list. --- dlls/advpack/files.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/advpack/files.c b/dlls/advpack/files.c index f351bb49521..5003239ed2d 100644 --- a/dlls/advpack/files.c +++ b/dlls/advpack/files.c @@ -564,9 +564,7 @@ static LPSTR convert_file_list(LPCSTR FileList, DWORD *dwNumFiles) dwLen = last - first + 3; /* room for double-null termination */ szConvertedList = HeapAlloc(GetProcessHeap(), 0, dwLen); lstrcpynA(szConvertedList, first, dwLen - 1); - szConvertedList[dwLen - 1] = '\0'; - szConvertedList[dwLen] = '\0'; /* empty list */ if (!lstrlenA(szConvertedList))