projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cb2fe58
)
tried to fix parse_lines #4
author
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 00:55:58 +0000
(
02:55
+0200)
committer
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 00:55:58 +0000
(
02:55
+0200)
IRCParser.c
patch
|
blob
|
history
diff --git
a/IRCParser.c
b/IRCParser.c
index 899a10e5b706b90225ada51813b6dc5137578136..40edec9f662e7077167e5b38710f70af6d67d2ed 100644
(file)
--- a/
IRCParser.c
+++ b/
IRCParser.c
@@
-16,10
+16,9
@@
int parse_lines(struct ClientSocket *client, char *lines, int len) {
lines[i] = 0;
if(lines[i] == '\n') {
lines[i] = 0;
lines[i] = 0;
if(lines[i] == '\n') {
lines[i] = 0;
- startpos = strlen(lines); //save length of the current line
parse_line(client, lines);
parse_line(client, lines);
- lines += startpos+1;
- printf("SKIP %d: %s\n", startpos+1, lines);
+ lines +=
i-
startpos+1;
+ printf("SKIP %d: %s\n",
i-
startpos+1, lines);
startpos = i+1;
}
}
startpos = i+1;
}
}