mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-01 14:01:20 +00:00
remove redundant string termination
already done by FLUID_STRNCPY macro
This commit is contained in:
parent
ba48024f59
commit
50923b3f0e
1 changed files with 0 additions and 2 deletions
|
@ -920,7 +920,6 @@ fluid_settings_copystr(fluid_settings_t* settings, const char *name,
|
|||
if (setting->value)
|
||||
{
|
||||
FLUID_STRNCPY (str, setting->value, len);
|
||||
str[len - 1] = 0; /* Force terminate, in case of truncation */
|
||||
}
|
||||
|
||||
retval = FLUID_OK;
|
||||
|
@ -932,7 +931,6 @@ fluid_settings_copystr(fluid_settings_t* settings, const char *name,
|
|||
if (setting->hints & FLUID_HINT_TOGGLED)
|
||||
{
|
||||
FLUID_STRNCPY (str, setting->value ? "yes" : "no", len);
|
||||
str[len - 1] = 0; /* Force terminate, in case of truncation */
|
||||
|
||||
retval = FLUID_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue