Archived
1
0
This commit is contained in:
Jeff Becker 2016-10-15 13:55:25 -04:00
parent 9ae0b0ef5b
commit 04df5de9a1
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -10,10 +10,10 @@ namespace nntpchan {
while(l-- > 0) { while(l-- > 0) {
char c = d[idx++]; char c = d[idx++];
if(c == '\n') { if(c == '\n') {
OnLine(d, idx-2); OnLine(d, idx-1);
d += idx; d += idx;
} else if (c == '\r' && d[idx] == '\n') { } else if (c == '\r' && d[idx] == '\n') {
OnLine(d, idx-2); OnLine(d, idx-1);
d += idx + 1; d += idx + 1;
} }
} }