Commit 6b90f27d authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

comctl32: Fixed strncpy (Coverity).

parent 8598b121
......@@ -1225,7 +1225,7 @@ static void test_itemedit(void)
r = TreeView_SelectItem(hTree, NULL);
expect(TRUE, r);
/* alter text */
strncpy(buff, "x", sizeof(buff)/sizeof(CHAR));
strcpy(buff, "x");
r = SendMessage(edit, WM_SETTEXT, 0, (LPARAM)buff);
expect(TRUE, r);
r = SendMessage(hTree, WM_COMMAND, MAKEWPARAM(0, EN_KILLFOCUS), (LPARAM)edit);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment