Author: pschweitzer
Date: Sat Apr 5 22:14:53 2014
New Revision: 62637
URL:
http://svn.reactos.org/svn/reactos?rev=62637&view=rev
Log:
[KBSWITCH]
Fix buffer overflow. Static strings are already \0 terminated.
CID #515202
Modified:
trunk/reactos/base/applications/kbswitch/kbswitch.c
Modified: trunk/reactos/base/applications/kbswitch/kbswitch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/kbswitch…
==============================================================================
--- trunk/reactos/base/applications/kbswitch/kbswitch.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/kbswitch/kbswitch.c [iso-8859-1] Sat Apr 5 22:14:53
2014
@@ -43,7 +43,7 @@
szBuf,
sizeof(szBuf) / sizeof(TCHAR)) == 0)
{
- lstrcpy(szBuf, _T("??\0"));
+ lstrcpy(szBuf, _T("??"));
}
hdcsrc = GetDC(NULL);