# HG changeset patch # User Darkvater # Date 2006-03-15 12:37:59 # Node ID b3e5538ef7a99363d782344c5be371689eccb53a # Parent bd80c5e2090c6739c9904ddf504656ec67a983d6 (svn r3880) - just do a string compare without length restrictions; followup for r3875 diff --git a/settings.c b/settings.c --- a/settings.c +++ b/settings.c @@ -1420,7 +1420,7 @@ static const SettingDesc *GetPatchFromNa 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;