diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-18 12:11:03 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-18 12:11:03 -0500 |
commit | 44f374480888812456892f59a9f25f475e564819 (patch) | |
tree | 444cc5b5547fca9a0bad720ca8a4c49c14a63092 /config.c | |
parent | 6db2ef3ce69c17f6291b30fcb9278e7d4df53c71 (diff) |
got windows build to partly work
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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]) { |