summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Modules/langinfo.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 380d65cd9..dbee8f201 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
     }