mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-26 23:34:44 +02:00
Fix a crash regression due to a bad length count for a replacement of wcscpy_s
This commit is contained in:
parent
7fe3cda1d0
commit
1ab1624800
@ -151,7 +151,7 @@ int FileDialog::setExtsFilter(const TCHAR *extText, const TCHAR *exts)
|
|||||||
_nbCharFileExt += static_cast<int32_t>(extFilter.length()) + 1;
|
_nbCharFileExt += static_cast<int32_t>(extFilter.length()) + 1;
|
||||||
|
|
||||||
pFileExt = _fileExt + _nbCharFileExt;
|
pFileExt = _fileExt + _nbCharFileExt;
|
||||||
curLen -= _nbCharFileExt;
|
curLen = nbCharNewFileExt - _nbCharFileExt;
|
||||||
wcscpy_s(pFileExt, curLen, exts);
|
wcscpy_s(pFileExt, curLen, exts);
|
||||||
_nbCharFileExt += lstrlen(exts) + 1;
|
_nbCharFileExt += lstrlen(exts) + 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user