forked from Mirrors/wine-wine
wordpad: Copy the correct amount of data with lstrcpynW (Coverity).
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 New Issue