mirror of
https://github.com/reactos/wine.git
synced 2025-02-03 10:43:30 +00:00
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);
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user