Fix DrumSynth sscanf (#4869)
This commit is contained in:
committed by
Oskar Wallgren
parent
a233291c27
commit
05d5e2036d
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user