diff options
-rw-r--r-- | editors/sed.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c index 4c7f75521..a0c713f58 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -990,6 +990,11 @@ static char *get_next_line(char *gets_char, char *last_puts_char, char last_gets | |||
990 | char c = temp[len-1]; | 990 | char c = temp[len-1]; |
991 | if (c == '\n' || c == '\0') { | 991 | if (c == '\n' || c == '\0') { |
992 | temp[len-1] = '\0'; | 992 | temp[len-1] = '\0'; |
993 | #if ENABLE_PLATFORM_MINGW32 | ||
994 | if (c == '\n' && len > 1 && temp[len-2] == '\r') { | ||
995 | temp[len-2] = '\0'; | ||
996 | } | ||
997 | #endif | ||
993 | gc = c; | 998 | gc = c; |
994 | if (c == '\0') { | 999 | if (c == '\0') { |
995 | int ch = fgetc(fp); | 1000 | int ch = fgetc(fp); |