]> dxcluster.net Git - spider.git/commitdiff
take off any trailing \r with telnet mode
authordjk <djk>
Sun, 26 Mar 2000 22:23:06 +0000 (22:23 +0000)
committerdjk <djk>
Sun, 26 Mar 2000 22:23:06 +0000 (22:23 +0000)
src/client.c

index ac8911448f4d12a390eddd7b97d78ffd92a4d6aa..adf486b1199c61c4b9d042e170d79293b8fc3068 100644 (file)
@@ -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;