specify bufsize via sizeof()

This commit is contained in:
derselbst 2017-09-19 17:12:14 +02:00
parent 471cbffc20
commit d708c2f5e2

View file

@ -572,7 +572,7 @@ new_fluid_synth(fluid_settings_t *settings)
}
else
{
if (fluid_settings_copystr(settings, "synth.volenv", buf, 64) == 1)
if (fluid_settings_copystr(settings, "synth.volenv", buf, sizeof(buf)/sizeof(buf[0])) == 1)
{
double atten = atof(buf);
if(atten != 0.0)