From 6b90f27d8f97fcc468e8e09eaedd1bea15f4cecf Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 28 Jun 2011 09:15:13 +0200 Subject: [PATCH] comctl32: Fixed strncpy (Coverity). --- dlls/comctl32/tests/treeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c index 324473d172a..faa9553f54a 100644 --- a/dlls/comctl32/tests/treeview.c +++ b/dlls/comctl32/tests/treeview.c @@ -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);