Fix DrumSynth sscanf (#4869)

This commit is contained in:
Alexandre Almeida
2019-03-03 05:44:20 -03:00
committed by Oskar Wallgren
parent a233291c27
commit 05d5e2036d

View File

@@ -119,7 +119,10 @@ void DrumSynth::GetEnv(int env, const char *sec, const char *key, QString ini)
char en[256], s[8];
int i=0, o=0, ep=0;
GetPrivateProfileString(sec, key, "0,0 100,0", en, sizeof(en), ini);
en[255]=0; //be safe!
//be safe!
en[255]=0;
s[0]=0;
while(en[i]!=0)
{