18587: fix bug where only the beginning of the association key was compared

This commit is contained in:
Oliver Kiddle 2003-05-30 12:35:59 +00:00
parent 5e22d7ee42
commit cba898f217
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-05-30 Oliver Kiddle <opk@zsh.org>
* 18587: Src/Modules/langinfo.c: fix bug where only the beginning
of the association key was compared so MON_10 would match MON_1
2003-05-28 Peter Stephenson <pws@csr.com>
* unposted: Config/version.mk, Completion/Unix/Command/.distfiles,

View file

@ -388,7 +388,7 @@ liitem(char *name)
nlcode = &nl_vals[0];
for (element = (char **)nl_names; *element; element++, nlcode++) {
if ((!strncmp(*element, name, strlen(*element))))
if ((!strcmp(*element, name)))
return nlcode;
}