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)
|
||||
{
|
||||
lstrcpynW(custom_data->findBuffer, pFr->lpstrFindWhat,
|
||||
sizeof(custom_data->findBuffer));
|
||||
sizeof(custom_data->findBuffer) / sizeof(WCHAR));
|
||||
pFr->lpstrFindWhat = custom_data->findBuffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue