X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=parsehosts.c;h=f356f165b76b9d21fcc36b3382e0aaf7d0eac947;hp=146e897b8fde295714b575f7a30166ff98038649;hb=364980f04f445e5040f7fe5c6a5c499ac9e86d5b;hpb=47b5fd64878b8e1206cbdc7fc2ec65308b0d9e89 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) {