[TASKMGR]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Wed, 8 Feb 2017 22:52:46 +0000 (22:52 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Wed, 8 Feb 2017 22:52:46 +0000 (22:52 +0000)
- ellipsis is a pointer not an array. CID 1321855

svn path=/trunk/; revision=73760

reactos/base/applications/taskmgr/perfdata.c

index 1b6f716..353ee82 100644 (file)
@@ -572,7 +572,7 @@ BOOL PerfDataGetCommandLine(ULONG Index, LPWSTR lpCommandLine, ULONG nMaxCount)
         {
             /* 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;
         }