diff options
Diffstat (limited to 'libbb/parse_config.c')
-rw-r--r-- | libbb/parse_config.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbb/parse_config.c b/libbb/parse_config.c index 8701b010c..bcd667c7c 100644 --- a/libbb/parse_config.c +++ b/libbb/parse_config.c | |||
@@ -113,8 +113,17 @@ static int get_line_with_continuation(parser_t *parser) | |||
113 | line = parser->line; | 113 | line = parser->line; |
114 | for (;;) { | 114 | for (;;) { |
115 | parser->lineno++; | 115 | parser->lineno++; |
116 | #if !ENABLE_PLATFORM_MINGW32 | ||
116 | if (line[len - 1] == '\n') | 117 | if (line[len - 1] == '\n') |
117 | len--; | 118 | len--; |
119 | #else | ||
120 | if (line[len - 1] == '\n') { | ||
121 | len--; | ||
122 | if (len != 0 && line[len - 1] == '\r') { | ||
123 | len--; | ||
124 | } | ||
125 | } | ||
126 | #endif | ||
118 | if (len == 0 || line[len - 1] != '\\') | 127 | if (len == 0 || line[len - 1] != '\\') |
119 | break; | 128 | break; |
120 | len--; | 129 | len--; |