Author: cwittich
Date: Tue Sep 23 03:04:57 2008
New Revision: 36418
URL:
http://svn.reactos.org/svn/reactos?rev=36418&view=rev
Log:
overrun of static array
Fix for Coverity error CID: 529
Modified:
trunk/reactos/base/applications/notepad/text.c
Modified: trunk/reactos/base/applications/notepad/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/text.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/text.c [iso-8859-1] Tue Sep 23 03:04:57 2008
@@ -317,7 +317,7 @@
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;