projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
173ee86
)
tried to fix parse_lines #2 :D
author
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 00:47:19 +0000
(
02:47
+0200)
committer
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 00:47:19 +0000
(
02:47
+0200)
IRCParser.c
patch
|
blob
|
history
diff --git
a/IRCParser.c
b/IRCParser.c
index 622cd8a67f1b6c2d2039c6fb027885b40836abd5..5d52923b91b527602c7d9787ba678932fa430025 100644
(file)
--- a/
IRCParser.c
+++ b/
IRCParser.c
@@
-16,7
+16,7
@@
int parse_lines(struct ClientSocket *client, char *lines, int len) {
if(lines[i] == '\n') {
lines[i] = 0;
parse_line(client, lines);
if(lines[i] == '\n') {
lines[i] = 0;
parse_line(client, lines);
- lines +=
i-startpos
;
+ lines +=
strlen(lines)+1
;
startpos = i+1;
}
}
startpos = i+1;
}
}