advpack: Fix buffer overrun in convert_file_list.
This commit is contained in:
parent
9b5d3677df
commit
3055239f69
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue