aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 00:41:42 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-20 19:14:39 +0200
commitc6737e7500e71b3122e336a64b1fe1bd74399292 (patch)
treec23201a8cb1ed3ff9f09482f48214ed88f6afe02 /shell
parent2966e4a8aa09d4dacab5338f058999d602c4b102 (diff)
downloadbusybox-w32-c6737e7500e71b3122e336a64b1fe1bd74399292.tar.gz
busybox-w32-c6737e7500e71b3122e336a64b1fe1bd74399292.tar.bz2
busybox-w32-c6737e7500e71b3122e336a64b1fe1bd74399292.zip
win32: ash: preadbuffer(): accept \r\n as line ending
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 85d8f18a5..da3b6d031 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -9573,7 +9573,7 @@ preadbuffer(void)
9573 more--; 9573 more--;
9574 9574
9575 c = *q; 9575 c = *q;
9576 if (c == '\0') { 9576 if (c == '\0' || (ENABLE_PLATFORM_MINGW32 && c == '\r')) {
9577 memmove(q, q + 1, more); 9577 memmove(q, q + 1, more);
9578 } else { 9578 } else {
9579 q++; 9579 q++;