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;
}
}