diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 82cb4dd3c7..03ccef78ab 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -1352,7 +1352,7 @@ TAB_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam) len=lstrlenA (tabItem->pszText); if (len>wineItem->cchTextMax) wineItem->pszText= COMCTL32_ReAlloc (wineItem->pszText, len+1); - lstrcpynA (wineItem->pszText, tabItem->pszText, len); + lstrcpyA (wineItem->pszText, tabItem->pszText); } return TRUE;