1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

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

@ -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> 2003-05-28 Peter Stephenson <pws@csr.com>
* unposted: Config/version.mk, Completion/Unix/Command/.distfiles, * unposted: Config/version.mk, Completion/Unix/Command/.distfiles,

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