From: djk Date: Sun, 26 Mar 2000 22:23:06 +0000 (+0000) Subject: take off any trailing \r with telnet mode X-Git-Tag: R_1_39~8 X-Git-Url: http://scm.dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0639d38993da3e046530ec442265261c23d8daeb;hp=9a094013619e9ae8c4f37e0d575fcbf0841f621d;p=spider.git take off any trailing \r with telnet mode --- diff --git a/src/client.c b/src/client.c index ac891144..adf486b1 100644 --- a/src/client.c +++ b/src/client.c @@ -499,8 +499,10 @@ void process_node() case 'D': if (p) { int l = mp->inp - (unsigned char *) p; + if (nl == '\n' && l >= 1 && p[l-1] == '\r') /* kludge for GB7DXM */ + l--; send_text(in, p, l); - } + } break; default: break;