Skip to content

Commit

Permalink
削ってはいけないサイズ制約を復活させる
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed Apr 25, 2020
1 parent 941ca08 commit 9bc1009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sakura_core/typeprop/CImpExpManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ bool CImpExpRegex::Import( const wstring& sFileName, wstring& sErrMsg )
{
if( 0 < MAX_REGEX_KEYWORDLISTLEN - keywordPos - 1 ){
regexKeyArr[count].m_nColorIndex = k;
wcsncpy_s( &pKeyword[keywordPos], MAX_REGEX_KEYWORDLISTLEN - keywordPos, p, _TRUNCATE );
wcsncpy_s( &pKeyword[keywordPos], std::min<size_t>(MAX_REGEX_KEYWORDLEN, MAX_REGEX_KEYWORDLISTLEN - keywordPos - 1), p, _TRUNCATE );
count++;
keywordPos += wcsnlen( &pKeyword[keywordPos], MAX_REGEX_KEYWORDLISTLEN - keywordPos ) + 1;
}else{
Expand Down

0 comments on commit 9bc1009

Please sign in to comment.