summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-15 12:37:59 +0000
committerDarkvater <darkvater@openttd.org>2006-03-15 12:37:59 +0000
commit4689031f19638240d1cdea97deb7790b035a70fe (patch)
tree8854787c09d8542f8a677c85d18081235eafa634
parent251242165cdee3f30e148d365b416a6b079dfe33 (diff)
downloadopenttd-4689031f19638240d1cdea97deb7790b035a70fe.tar.xz
(svn r3880) - just do a string compare without length restrictions; followup for r3875
-rw-r--r--settings.c2
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;