Changeset - r3210:b3e5538ef7a9
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2006-03-15 12:37:59
darkvater@openttd.org
(svn r3880) - just do a string compare without length restrictions; followup for r3875
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
settings.c
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)