minor bugfixes (#ifdef MONITORINGTRHU) master git-svn
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Wed, 8 Jan 2020 07:57:57 +0000 (07:57 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Wed, 8 Jan 2020 07:57:57 +0000 (07:57 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@278 251d49ef-1d17-4917-a970-b30cf55b089b

parsehosts.c
prometheus.c

index 146e897..f356f16 100644 (file)
@@ -307,7 +307,7 @@ void parse_hosts(char *hosts)
       {\r
        len = found_at - found_tech_str - 1;\r
        for_each(technology, technologies)\r
-        if(!strncmp(technology->filename, found_tech_str + 1, len))\r
+        if(strlen(technology->filename)==len && !strncmp(technology->filename, found_tech_str + 1, len))\r
          break;\r
        if(!technology)\r
        {\r
index 1c91738..4cc02a0 100644 (file)
@@ -651,7 +651,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version);
   char *filename;\r
   FILE *f;\r
   string(filename, strlen(log_dir) + strlen(technology->filename) + 5);\r
-  strcpy(filename, html_log_dir);\r
+  strcpy(filename, log_dir);\r
   strcat(filename, technology->filename); \r
   strcat(filename, ".csv");\r
   /*-----------------------------------------------------------------*/\r
This page took 0.155271 seconds and 4 git commands to generate.