summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index 57a69f4..3bce64d 100644
--- a/config.c
+++ b/config.c
@@ -160,6 +160,8 @@ void config_read(Ted *ted, char const *filename) {
char *newline = strchr(line, '\n');
if (newline || feof(fp)) {
if (newline) *newline = '\0';
+ char *carriage_return = strchr(line, '\r');
+ if (carriage_return) *carriage_return = '\0';
// ok, we've now read a line.
switch (line[0]) {