diff options
| author | 2016-09-09 10:50:12 +0100 | |
|---|---|---|
| committer | 2016-09-20 22:23:07 +0100 | |
| commit | 1809cf18798f22a385edd9178a7e893ce77243ab (patch) | |
| tree | 399ae67bbde9bd54257bc5f1e9a99b41eeaf06bc /src/configparser.cpp | |
| parent | Merge pull request #1225 from SaberUK/master+cppflags (diff) | |
Strip carriage returns in the config parser.
This prevents problems when configuration files have been edited
on a Windows machine.
Diffstat (limited to 'src/configparser.cpp')
| -rw-r--r-- | src/configparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp index 3be1ac9c5..8bf9aaec2 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -173,7 +173,7 @@ struct Parser } else if (ch == '"') break; - else + else if (ch != '\r') value.push_back(ch); } |
