X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Ftools.c;h=093ed80b03618803c579b327e829e9767d32ecce;hp=6ecb7da80e68c752bccb65e7c378ece4ac03f982;hb=c8e7ce1c57afaebf3996a6712c45f4c89c34ba44;hpb=689da1db7e2517c187ce76c6c553e20d630a7f36 diff --git a/src/tools.c b/src/tools.c index 6ecb7da..093ed80 100644 --- a/src/tools.c +++ b/src/tools.c @@ -212,7 +212,8 @@ char **table_end(struct Table *table) { } } } - } + } else if(table->col_flags[col] & TABLE_FLAG_COL_SKIP_NULL) + continue; i -= j; if(col < table->width-1) { for(;i < table->maxwidth[col]; i++) { @@ -521,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/