summaryrefslogtreecommitdiffstats
path: root/cpukit/telnetd/pty.c
diff options
context:
space:
mode:
authorEric Norum <WENorum@lbl.gov>2006-04-27 18:18:49 +0000
committerEric Norum <WENorum@lbl.gov>2006-04-27 18:18:49 +0000
commitb84fbbe80b20af4448756d10a270d117c3db9d8f (patch)
treeae4aea597b462aa5f6cd2e20ed40887cc23ccef3 /cpukit/telnetd/pty.c
parentAdd ability to free information on task delete. (diff)
downloadrtems-b84fbbe80b20af4448756d10a270d117c3db9d8f.tar.bz2
Accept <CR><NUL> as equivalent to <CR><LF>.
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;
};