mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +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
|
@ -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…
Add table
Add a link
Reference in a new issue