Author: khornicek
Date: Wed Feb  8 22:52:46 2017
New Revision: 73760

URL: http://svn.reactos.org/svn/reactos?rev=73760&view=rev
Log:
[TASKMGR]
- ellipsis is a pointer not an array. CID 1321855

Modified:
    trunk/reactos/base/applications/taskmgr/perfdata.c

Modified: trunk/reactos/base/applications/taskmgr/perfdata.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/perfdata.c?rev=73760&r1=73759&r2=73760&view=diff
==============================================================================
--- trunk/reactos/base/applications/taskmgr/perfdata.c  [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/perfdata.c  [iso-8859-1] Wed Feb  8 
22:52:46 2017
@@ -572,7 +572,7 @@
         {
             /* Found it. Use it, and add some ellipsis at the very end to make 
it cute */
             wcsncpy(lpCommandLine, cache->str, CMD_LINE_MIN(nMaxCount, 
cache->len));
-            wcscpy(lpCommandLine + CMD_LINE_MIN(nMaxCount, cache->len) - 
sizeof(ellipsis)/sizeof(WCHAR), ellipsis);
+            wcscpy(lpCommandLine + CMD_LINE_MIN(nMaxCount, cache->len) - 
wcslen(ellipsis), ellipsis);
             return TRUE;
         }
 


Reply via email to