Skip to content

Commit

Permalink
fix compilation warning since g++ 7.2.0
Browse files Browse the repository at this point in the history
'__builtin___snprintf_chk' output may be truncated before the last format character.
  • Loading branch information
janbar committed Sep 24, 2017
1 parent d9b517a commit 738c8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cppmyth/MythScheduleHelper75.cpp
Expand Up @@ -1325,7 +1325,7 @@ const MythTimerType::AttributeList& MythScheduleHelper75::GetRulePriorityList()
{
if (!m_priorityListInit)
{
char buf[4];
char buf[5];
m_priorityListInit = true;
m_priorityList.reserve(200);
memset(buf, 0, sizeof(buf));
Expand Down

0 comments on commit 738c8f4

Please sign in to comment.