From: xchaos Date: Wed, 8 Jan 2020 07:57:57 +0000 (+0000) Subject: minor bugfixes (#ifdef MONITORINGTRHU) X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=commitdiff_plain;h=364980f04f445e5040f7fe5c6a5c499ac9e86d5b;hp=47b5fd64878b8e1206cbdc7fc2ec65308b0d9e89 minor bugfixes (#ifdef MONITORINGTRHU) git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@278 251d49ef-1d17-4917-a970-b30cf55b089b --- diff --git a/parsehosts.c b/parsehosts.c index 146e897..f356f16 100644 --- a/parsehosts.c +++ b/parsehosts.c @@ -307,7 +307,7 @@ void parse_hosts(char *hosts) { len = found_at - found_tech_str - 1; for_each(technology, technologies) - if(!strncmp(technology->filename, found_tech_str + 1, len)) + if(strlen(technology->filename)==len && !strncmp(technology->filename, found_tech_str + 1, len)) break; if(!technology) { diff --git a/prometheus.c b/prometheus.c index 1c91738..4cc02a0 100644 --- a/prometheus.c +++ b/prometheus.c @@ -651,7 +651,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); char *filename; FILE *f; string(filename, strlen(log_dir) + strlen(technology->filename) + 5); - strcpy(filename, html_log_dir); + strcpy(filename, log_dir); strcat(filename, technology->filename); strcat(filename, ".csv"); /*-----------------------------------------------------------------*/