diff options
| author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-05-30 12:35:59 +0000 |
|---|---|---|
| committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-05-30 12:35:59 +0000 |
| commit | cba898f217ac837a2b8da9f40e6c754d3898eb46 (patch) | |
| tree | a4caedda138948bec69af3b1d2388ae96a6d9088 | |
| parent | unposted: zsh-4.1.1-test-3 (diff) | |
| download | zsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.tar zsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.tar.gz zsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.tar.bz2 zsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.tar.lz zsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.tar.xz zsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.tar.zst zsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.zip | |
18587: fix bug where only the beginning of the association key was compared
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Src/Modules/langinfo.c | 2 |
2 files changed, 6 insertions, 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, diff --git a/Src/Modules/langinfo.c b/Src/Modules/langinfo.c index 6b004fb2f..66d0228aa 100644 --- a/Src/Modules/langinfo.c +++ b/Src/Modules/langinfo.c @@ -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; } |
