projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
860aa64
)
dtmail: IO.C: just compare against \r on all systems
author
Jon Trulson
<jon@radscan.com>
Sat, 14 Jul 2012 03:45:46 +0000
(21:45 -0600)
committer
Jon Trulson
<jon@radscan.com>
Sat, 14 Jul 2012 03:45:46 +0000
(21:45 -0600)
cde/programs/dtmail/libDtMail/Common/IO.C
patch
|
blob
|
history
diff --git
a/cde/programs/dtmail/libDtMail/Common/IO.C
b/cde/programs/dtmail/libDtMail/Common/IO.C
index 87f6446ac743b8a29261fdfc0676c2bd183efde4..0046ac683745f03a877eeb2bda3a4bbfdf337f2b 100644
(file)
--- 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 == '
\r
' && *(ptr+1) == '\n')
-#endif
continue;
writebuf[j++] = *ptr;
if (j == SWS_BUFFERSIZE || i == (bytes-1)) {