Author: fireball
Date: Thu Mar 10 22:07:56 2011
New Revision: 51013
URL:
http://svn.reactos.org/svn/reactos?rev=51013&view=rev
Log:
[NOTEPAD]
- Edijs: Zero initialize the caption string.
See issue #5992 for more details.
Modified:
trunk/reactos/base/applications/notepad/dialog.c
Modified: trunk/reactos/base/applications/notepad/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] Thu Mar 10 22:07:56
2011
@@ -117,7 +117,7 @@
*/
static void UpdateWindowCaption(void)
{
- TCHAR szCaption[MAX_STRING_LEN];
+ TCHAR szCaption[MAX_STRING_LEN] = _T("");
TCHAR szNotepad[MAX_STRING_LEN];
LoadString(Globals.hInstance, STRING_NOTEPAD, szNotepad, SIZEOF(szNotepad));