From 097db5ab2d11aaa36acc8b3969751707adeee0e2 Mon Sep 17 00:00:00 2001 From: Plamen Dimitrov Date: Mon, 14 Apr 2014 05:58:44 +0200 Subject: [PATCH] converting hostnames to lowercase --- gmetad/process_xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gmetad/process_xml.c b/gmetad/process_xml.c index 81cb772fa..bc275d1f0 100644 --- a/gmetad/process_xml.c +++ b/gmetad/process_xml.c @@ -455,9 +455,9 @@ startElement_HOST(void *data, const char *el, const char **attr) /* Convert name to lower case - host names can't be * case sensitive */ - /*for(i = 0; name[i] != 0; i++) + for(i = 0; name[i] != 0; i++) xmldata->hostname[i] = tolower(name[i]); - xmldata->hostname[i] = 0; */ + xmldata->hostname[i] = 0; hashkey.data = (void*) name; hashkey.size = strlen(name) + 1;