about summary refs log tree commit diff
path: root/Src/Modules/langinfo.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-05-30 12:35:59 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-05-30 12:35:59 +0000
commitcba898f217ac837a2b8da9f40e6c754d3898eb46 (patch)
treea4caedda138948bec69af3b1d2388ae96a6d9088 /Src/Modules/langinfo.c
parent5e22d7ee424dc58de4049a9ad65b50ec4728c206 (diff)
downloadzsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.tar.gz
zsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.tar.xz
zsh-cba898f217ac837a2b8da9f40e6c754d3898eb46.zip
18587: fix bug where only the beginning of the association key was compared
Diffstat (limited to 'Src/Modules/langinfo.c')
-rw-r--r--Src/Modules/langinfo.c2
1 files changed, 1 insertions, 1 deletions
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;
     }