Author: tkreuzer
Date: Fri Aug 3 02:23:27 2007
New Revision: 28111
URL:
http://svn.reactos.org/svn/reactos?rev=28111&view=rev
Log:
small bugfix: don't zero terminate the szCSDVersion sting beyond the buffer.
Modified:
trunk/rostests/apitests/w32knapi/w32knapi.c
Modified: trunk/rostests/apitests/w32knapi/w32knapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/w32knap…
==============================================================================
--- trunk/rostests/apitests/w32knapi/w32knapi.c (original)
+++ trunk/rostests/apitests/w32knapi/w32knapi.c Fri Aug 3 02:23:27 2007
@@ -15,7 +15,7 @@
GetVersionExW(&osv);
pszRos = osv.szCSDVersion + wcslen(osv.szCSDVersion) + 1;
/* make sure the string is zero terminated */
- pszRos[127] = 0;
+ osv.szCSDVersion[127] = 0;
/* Is ReactOS? */
if (wcsstr(pszRos, L"ReactOS") != NULL)
{