mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 07:57:22 +00:00
wordpad: Copy the correct amount of data with lstrcpynW (Coverity).
This commit is contained in:
parent
fd490262ce
commit
b5c3408a5e
|
@ -1232,7 +1232,7 @@ static LRESULT handle_findmsg(LPFINDREPLACEW pFr)
|
||||||
if (pFr->lpstrFindWhat != custom_data->findBuffer)
|
if (pFr->lpstrFindWhat != custom_data->findBuffer)
|
||||||
{
|
{
|
||||||
lstrcpynW(custom_data->findBuffer, pFr->lpstrFindWhat,
|
lstrcpynW(custom_data->findBuffer, pFr->lpstrFindWhat,
|
||||||
sizeof(custom_data->findBuffer));
|
sizeof(custom_data->findBuffer) / sizeof(WCHAR));
|
||||||
pFr->lpstrFindWhat = custom_data->findBuffer;
|
pFr->lpstrFindWhat = custom_data->findBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue