tried to fix parse_lines
authorpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 00:42:26 +0000 (02:42 +0200)
committerpk910 <philipp@zoelle1.de>
Wed, 10 Aug 2011 00:42:26 +0000 (02:42 +0200)
IRCParser.c

index bfc722b0335dbde910d6bef346a124988fef5286..187aeb6475263af61b46dd3110ab570a99cf17b3 100644 (file)
@@ -16,8 +16,8 @@ int parse_lines(struct ClientSocket *client, char *lines, int len) {
         if(lines[i] == '\n') {
             lines[i] = 0;
             parse_line(client, lines);
-            startpos = i+1;
             lines += i-startpos;
+            startpos = i+1;
         }
     }
     return startpos;