overrun of static array

Fix for Coverity error CID: 529

svn path=/trunk/; revision=36418
This commit is contained in:
Christoph von Wittich
2008-09-23 08:04:57 +00:00
parent 77b6062570
commit 87b74aaeed

View File

@@ -317,7 +317,7 @@ done:
BOOL WriteText(HANDLE hFile, LPCWSTR pszText, DWORD dwTextLen, int iEncoding, int iEoln)
{
WCHAR wcBom;
BYTE bEoln[1];
BYTE bEoln[2];
LPBYTE pbEoln = NULL;
DWORD dwDummy, dwPos, dwNext, dwEolnSize = 0;