aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-01 00:24:47 +0000
committerhpa <hpa>2004-12-01 00:24:47 +0000
commitdf7a8e774d0236575a33cf348d204b29f95925b5 (patch)
tree3ecedd1b451c52519695a149b43ac9afb9b5f021 /com32/lib
parentaf175fa146b8117a3f477deb81e6f6bde763d296 (diff)
downloadsyslinux-elf-df7a8e774d0236575a33cf348d204b29f95925b5.tar.gz
syslinux-elf-df7a8e774d0236575a33cf348d204b29f95925b5.tar.xz
syslinux-elf-df7a8e774d0236575a33cf348d204b29f95925b5.zip
Ignore incoming LF, so that having Enter -> CR LF on input doesn't hurt
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);