summaryrefslogtreecommitdiff
path: root/libdb
diff options
context:
space:
mode:
Diffstat (limited to 'libdb')
-rw-r--r--libdb/db_lookup.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libdb/db_lookup.c b/libdb/db_lookup.c
index ff5e2310..28cd90e2 100644
--- a/libdb/db_lookup.c
+++ b/libdb/db_lookup.c
@@ -47,7 +47,6 @@
#include "manconfig.h"
#include "glcontainers.h"
-#include "lower.h"
#include "wordfnmatch.h"
#include "xregcomp.h"
@@ -162,7 +161,13 @@ void free_mandata_struct (struct mandata *pinfo)
*/
char *name_to_key (const char *name)
{
- return lower (name);
+ char *low, *p;
+
+ p = low = xmalloc (strlen (name) + 1);
+ while (*name)
+ *p++ = CTYPE (tolower, *name++);
+ *p = *name;
+ return low;
}
/* return char ptr array to the data's fields */