Commit b5c3408a authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

wordpad: Copy the correct amount of data with lstrcpynW (Coverity).

parent fd490262
......@@ -1232,7 +1232,7 @@ static LRESULT handle_findmsg(LPFINDREPLACEW pFr)
if (pFr->lpstrFindWhat != custom_data->findBuffer)
{
lstrcpynW(custom_data->findBuffer, pFr->lpstrFindWhat,
sizeof(custom_data->findBuffer));
sizeof(custom_data->findBuffer) / sizeof(WCHAR));
pFr->lpstrFindWhat = custom_data->findBuffer;
}
......
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