summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/telnetd/pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/telnetd/pty.c b/cpukit/telnetd/pty.c
index ae608929da..a650833cde 100644
--- a/cpukit/telnetd/pty.c
+++ b/cpukit/telnetd/pty.c
@@ -184,7 +184,7 @@ int read_pty(int minor) { /* Characters writed in the client side*/
return -1;
} else {
result=value;
- if ((value=='\n') && (ptys[minor].last_cr)) result=-1;
+ if (ptys[minor].last_cr && ((value=='\n')||(value=='\0'))) result=-1;
ptys[minor].last_cr=(value=='\r');
return result;
};