mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtmail: IO.C: just compare against \r on all systems
This commit is contained in:
parent
860aa64942
commit
bf51c110e5
1 changed files with 0 additions and 4 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue