diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 00:41:42 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 19:46:36 +1000 |
commit | ff46d9306a744665693f1f5420913ff97459c89c (patch) | |
tree | 36f5bb4c83d911544813acd9b5fc89c0d76a7137 | |
parent | 51ce60d01be26725012f0d15f89da002de2f727a (diff) | |
download | busybox-w32-ff46d9306a744665693f1f5420913ff97459c89c.tar.gz busybox-w32-ff46d9306a744665693f1f5420913ff97459c89c.tar.bz2 busybox-w32-ff46d9306a744665693f1f5420913ff97459c89c.zip |
win32: ash: preadbuffer(): accept \r\n as line ending
-rw-r--r-- | shell/ash.c | 2 |
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++; |