From da7d172d37486135647c6a13aa27b4475b6344b8 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 28 Aug 2003 09:40:50 +0000 Subject: [PATCH] Convert \r to \n while reading the file --- src/Prep/DemRaw2ascii/rawdem.c | 4 ++++ 1 file changed, 4 insertions(+) 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; }