remove redundant string termination

already done by FLUID_STRNCPY macro
This commit is contained in:
derselbst 2017-12-02 11:01:31 +01:00
parent ba48024f59
commit 50923b3f0e

View file

@ -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;
}