mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-04 01:51:06 +00:00
specify bufsize via sizeof()
This commit is contained in:
parent
471cbffc20
commit
d708c2f5e2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue