advpack: Fix buffer overrun in convert_file_list.

This commit is contained in:
Rob Shearman 2008-02-18 19:37:27 +00:00 committed by Alexandre Julliard
parent 9b5d3677df
commit 3055239f69
1 changed files with 0 additions and 2 deletions

View File

@ -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))