comctl32: Fixed strncpy (Coverity).

This commit is contained in:
Marcus Meissner 2011-06-28 09:15:13 +02:00 committed by Alexandre Julliard
parent 8598b121d6
commit 6b90f27d8f
1 changed files with 1 additions and 1 deletions

View File

@ -1225,7 +1225,7 @@ static void test_itemedit(void)
r = TreeView_SelectItem(hTree, NULL); r = TreeView_SelectItem(hTree, NULL);
expect(TRUE, r); expect(TRUE, r);
/* alter text */ /* alter text */
strncpy(buff, "x", sizeof(buff)/sizeof(CHAR)); strcpy(buff, "x");
r = SendMessage(edit, WM_SETTEXT, 0, (LPARAM)buff); r = SendMessage(edit, WM_SETTEXT, 0, (LPARAM)buff);
expect(TRUE, r); expect(TRUE, r);
r = SendMessage(hTree, WM_COMMAND, MAKEWPARAM(0, EN_KILLFOCUS), (LPARAM)edit); r = SendMessage(hTree, WM_COMMAND, MAKEWPARAM(0, EN_KILLFOCUS), (LPARAM)edit);