From cba898f217ac837a2b8da9f40e6c754d3898eb46 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 30 May 2003 12:35:59 +0000 Subject: 18587: fix bug where only the beginning of the association key was compared --- ChangeLog | 5 +++++ Src/Modules/langinfo.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 380d65cd9..dbee8f201 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-05-30 Oliver Kiddle + + * 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 * 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; } -- cgit 1.4.1