diff options
-rw-r--r-- | settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.c b/settings.c index 350dd4041..e6271b960 100644 --- a/settings.c +++ b/settings.c @@ -1420,7 +1420,7 @@ static const SettingDesc *GetPatchFromName(const char *name, uint *i) const SettingDesc *sd; for (*i = 0, sd = _patch_settings; sd->save.cmd != SL_END; sd++, (*i)++) { - if (strncmp(sd->desc.name, name, strlen(sd->desc.name)) == 0) return sd; + if (strcmp(sd->desc.name, name) == 0) return sd; } return NULL; |