mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[CONSOLE]
Don't overrun two buffers CID 1322100, 1237057 svn path=/trunk/; revision=69660
This commit is contained in:
@@ -305,7 +305,7 @@ FontTypeChange(HWND hwndDlg,
|
||||
LB_GETTEXT, nSel, (LPARAM)FaceName);
|
||||
FaceName[Length] = '\0';
|
||||
|
||||
Length = min(Length/*wcslen(FaceName) + 1*/, LF_FACESIZE); // wcsnlen
|
||||
Length = min(Length/*wcslen(FaceName) + 1*/, LF_FACESIZE - 1); // wcsnlen
|
||||
wcsncpy(pConInfo->FaceName, FaceName, LF_FACESIZE);
|
||||
pConInfo->FaceName[Length] = L'\0';
|
||||
DPRINT1("pConInfo->FaceName = '%S'\n", pConInfo->FaceName);
|
||||
|
||||
Reference in New Issue
Block a user