From: Jon Trulson Date: Sat, 14 Jul 2012 03:45:46 +0000 (-0600) Subject: dtmail: IO.C: just compare against \r on all systems X-Git-Tag: 2.2.0a~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bf51c110e5513f5148b31b3524bacabbda02d3ae;p=oweals%2Fcde.git dtmail: IO.C: just compare against \r on all systems --- diff --git a/cde/programs/dtmail/libDtMail/Common/IO.C b/cde/programs/dtmail/libDtMail/Common/IO.C index 87f6446a..0046ac68 100644 --- a/cde/programs/dtmail/libDtMail/Common/IO.C +++ b/cde/programs/dtmail/libDtMail/Common/IO.C @@ -306,11 +306,7 @@ SafeWriteStrip(int fd, const void * buf, size_t bytes) writebuf = (char*) malloc(bytes < SWS_BUFFERSIZE ? bytes : SWS_BUFFERSIZE); for (i = 0, j = 0; i < bytes; i++, ptr++) { -#if defined(linux) if (*ptr == '\r' && *(ptr+1) == '\n') -#else - if (*ptr == ' ' && *(ptr+1) == '\n') -#endif continue; writebuf[j++] = *ptr; if (j == SWS_BUFFERSIZE || i == (bytes-1)) {