From 364980f04f445e5040f7fe5c6a5c499ac9e86d5b Mon Sep 17 00:00:00 2001 From: xchaos Date: Wed, 8 Jan 2020 07:57:57 +0000 Subject: [PATCH] minor bugfixes (#ifdef MONITORINGTRHU) git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@278 251d49ef-1d17-4917-a970-b30cf55b089b --- parsehosts.c | 2 +- prometheus.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); /*-----------------------------------------------------------------*/ -- 2.30.2