Author: pschweitzer Date: Sat Oct 24 07:59:52 2015 New Revision: 69660
URL: http://svn.reactos.org/svn/reactos?rev=69660&view=rev Log: [CONSOLE] Don't overrun two buffers
CID 1322100, 1237057
Modified: trunk/reactos/dll/cpl/console/font.c
Modified: trunk/reactos/dll/cpl/console/font.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/console/font.c?rev=... ============================================================================== --- trunk/reactos/dll/cpl/console/font.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/console/font.c [iso-8859-1] Sat Oct 24 07:59:52 2015 @@ -305,7 +305,7 @@ 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);