*** VERSION 5.5.0 ***
[NeonServV5.git] / src / tools.c
index 985362d17c2edf8b88835911fdbaee9088f9dc19..3ad8a41f532600f3b01bbf84169b69d3fdeb875a 100644 (file)
@@ -1,4 +1,4 @@
-/* tools.c - NeonServ v5.4
+/* tools.c - NeonServ v5.5
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -522,7 +522,7 @@ int isFakeHost(char *host) {
     char *p1, *p2 = host;
     
     //find the last dot to identify if the hostmask is a fake host
-    while((p1 = strstr(p2, "."))) {
+    while((p1 = strchr(p2, '.'))) {
         p2 = p1 + 1;
     }
     //TLD database: http://www.iana.org/domains/root/db/