Skip to content

Commit

Permalink
Attempt to fix #646 (#649)
Browse files Browse the repository at this point in the history
* Attempt to fix #646

#648

* SetVoiceName() suggested by @diyelectromusic
  • Loading branch information
probonopd authored May 30, 2024
1 parent d08280b commit afa72d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/minidexed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1767,8 +1767,9 @@ void CMiniDexed::SetVoiceName (std::string VoiceName, unsigned nTG)
{
assert (nTG < CConfig::ToneGenerators);
assert (m_pTG[nTG]);
char Name[10];
char Name[11];
strncpy(Name, VoiceName.c_str(),10);
Name[10] = '\0';
m_pTG[nTG]->getName (Name);
}

Expand Down

0 comments on commit afa72d2

Please sign in to comment.