aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib')
-rw-r--r--com32/lib/sys/line_input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/lib/sys/line_input.c b/com32/lib/sys/line_input.c
index e0de58b0..c24cf920 100644
--- a/com32/lib/sys/line_input.c
+++ b/com32/lib/sys/line_input.c
@@ -47,6 +47,9 @@ ssize_t __line_input(struct file_info *fp, char *buf, size_t bufsize,
return n;
switch ( ch ) {
+ case '\n': /* Ignore incoming linefeed */
+ break;
+
case '\r':
*buf = '\n';
Write(fp, "\n", 1);