X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ffiles.c;h=71d01e945fd9f35c3d38ee7736d2e38e2f1d44a0;hp=0c4a7f435ee6f230cd8a9a323303940d5142b1c9;hb=41364660abbcb81a83f5018be3655352ecdf1ac9;hpb=0d2143d53f76e2780260996fae2b9f3ce4f29913 diff --git a/src/files.c b/src/files.c index 0c4a7f43..71d01e94 100644 --- a/src/files.c +++ b/src/files.c @@ -1203,7 +1203,7 @@ static struct SetupFileList *loadSetupFileList(char *filename) /* cut trailing comment or whitespace from input line */ for (line_ptr = line; *line_ptr; line_ptr++) { - if (*line_ptr == '#' || *line_ptr == '\n') + if (*line_ptr == '#' || *line_ptr == '\n' || *line_ptr == '\r') { *line_ptr = '\0'; break;