Skip to content

Commit

Permalink
Merge pull request #1604 from berryzplus/feature/fix_COutlineErlang
Browse files Browse the repository at this point in the history
MinGW版CRTでwcsncat_sのC++オーバーロードが未定義になっていることに対策する
  • Loading branch information
berryzplus committed Mar 22, 2021
2 parents 2cb2e96 + 030a2c3 commit 82950bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sakura_core/types/CType_Erlang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void COutlineErlang::build_arity( int arity )
{
wchar_t numstr[12];
::_snwprintf_s( numstr, _TRUNCATE, L"/%d", arity );
::wcsncat_s( m_func, numstr, _TRUNCATE );
::wcsncat_s( m_func, _countof(m_func), numstr, _TRUNCATE );
}

/** Erlang アウトライン解析
Expand Down

0 comments on commit 82950bf

Please sign in to comment.