-/* tools.c - NeonServ v5.4
+/* tools.c - NeonServ v5.6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
if(table->contents[row][col][i] == '\002') j++;
else if(table->contents[row][col][i] == '\003') {
j++;
- for(k = 1; k < 2; k++) {
+ for(k = 1; k <= 2; k++) {
if(isdigit(table->contents[row][col][i+k]))
j++;
else
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/