diff --git a/src/utils.c b/src/utils.c index 9f1af1df..3e8ca739 100644 --- a/src/utils.c +++ b/src/utils.c @@ -356,6 +356,7 @@ char *fgetl(FILE *fp) curr = strlen(line); } if(line[curr-1] == '\n') line[curr-1] = '\0'; + if(line[curr-1] == '\r') line[curr-1] = '\0'; return line; }