Attempt to fix #646 (#649)

* Attempt to fix #646

https://github.com/probonopd/MiniDexed/issues/648

* SetVoiceName() suggested by @diyelectromusic
pull/657/head^2
probonopd 6 months ago committed by GitHub
parent d08280bc70
commit afa72d21aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      src/minidexed.cpp

@ -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);
}

Loading…
Cancel
Save