diff --git a/src/Prep/DemRaw2ascii/rawdem.c b/src/Prep/DemRaw2ascii/rawdem.c index 94f7cf54..d80ff85e 100644 --- a/src/Prep/DemRaw2ascii/rawdem.c +++ b/src/Prep/DemRaw2ascii/rawdem.c @@ -68,6 +68,10 @@ int reads(int fd, char *buf, unsigned int len) { && ((c != '\n') && (c != '\r')); i++) buf[i] = c; + + if (buf[i] == '\r') + buf[i] = '\n'; + return res; }