[TASKMGR]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 20 Oct 2015 08:30:14 +0000 (08:30 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 20 Oct 2015 08:30:14 +0000 (08:30 +0000)
- Fix potential stack buffer overflows. CID 13220941322095

svn path=/trunk/; revision=69627

reactos/base/applications/taskmgr/perfpage.c

index 3ceadb5..d37bc9e 100644 (file)
@@ -371,11 +371,11 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
 
             StrFormatByteSizeW(CommitChargeTotal * 1024,
                                szChargeTotalFormat,
-                               sizeof(szChargeTotalFormat));
+                               _countof(szChargeTotalFormat));
 
             StrFormatByteSizeW(CommitChargeLimit * 1024,
                                szChargeLimitFormat,
-                               sizeof(szChargeLimitFormat));
+                               _countof(szChargeLimitFormat));
 
             if (!bInMenuLoop)
             {