comctl32: Fixed strncpy (Coverity).
This commit is contained in:
parent
8598b121d6
commit
6b90f27d8f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue