From e97388eec3fbc4e23ea5dfb0a9eb74745853681e Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 2 Aug 2007 22:23:27 +0000 Subject: [PATCH] small bugfix: don't zero terminate the szCSDVersion sting beyond the buffer. svn path=/trunk/; revision=28111 --- rostests/apitests/w32knapi/w32knapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rostests/apitests/w32knapi/w32knapi.c b/rostests/apitests/w32knapi/w32knapi.c index 35f512f92cf..78dacdcc56d 100644 --- a/rostests/apitests/w32knapi/w32knapi.c +++ b/rostests/apitests/w32knapi/w32knapi.c @@ -15,7 +15,7 @@ InitOsVersion() 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) {