about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-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;
     }