minor bugfixes (#ifdef MONITORINGTRHU)
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 146e897b8fde295714b575f7a30166ff98038649..f356f165b76b9d21fcc36b3382e0aaf7d0eac947 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 1c917386c82e7d68cb1d747f7fc6733f73bd59e8..4cc02a02543b8c2c23c1070fcb09a3b6807362da 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.20004 seconds and 4 git commands to generate.