From: pk910 Date: Wed, 10 Aug 2011 00:53:04 +0000 (+0200) Subject: tried to fix parse_lines #3 X-Git-Tag: v5.3~633 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=cb2fe58890a1caf9143157d246a1d7bffc53fd34;p=NeonServV5.git tried to fix parse_lines #3 --- diff --git a/IRCParser.c b/IRCParser.c index 27bcaf6..899a10e 100644 --- a/IRCParser.c +++ b/IRCParser.c @@ -16,9 +16,10 @@ int parse_lines(struct ClientSocket *client, char *lines, int len) { lines[i] = 0; if(lines[i] == '\n') { lines[i] = 0; + startpos = strlen(lines); //save length of the current line parse_line(client, lines); - lines += strlen(lines)+1; - printf("SKIP %lu: %s\n", (unsigned long) strlen(lines)+1, lines); + lines += startpos+1; + printf("SKIP %d: %s\n", startpos+1, lines); startpos = i+1; } }