mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 07:10:58 +02:00
18587: fix bug where only the beginning of the association key was compared
This commit is contained in:
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>
|
||||
|
||||
* unposted: Config/version.mk, Completion/Unix/Command/.distfiles,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue