diff options
| -rw-r--r-- | src/quotprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quotprint.c b/src/quotprint.c index 2799b82..ba33149 100644 --- a/src/quotprint.c +++ b/src/quotprint.c @@ -348,14 +348,14 @@ mainOfEncode( void*_ ){ #define IS_WHITESP(C) (C == 0x09 || C == 0x0A || C == 0x0D || C == 0x20) #define NEXT_SRC_CHR (BUF_SRC[iSrc]) #define IS_NEXT_CHR_PRESENT (iSrc + 1 < LEN_SRC) - #define IS_BINARY_MODE ((this->flg & FLG_isBinary)==0) + #define IS_BINARY_MODE ((this->flg & FLG_isBinary)!=0) #define IS_EBCDIC_RISKY(C) (C == 0x21 || C == 0x23 || C == 0x24 || C == 0x34 \ || C == 0x40 || C == 0x5B || C == 0x5C || C == 0x5D || C == 0x5E || C == 0x60 \ || C == 0x7B || C == 0x7C || C == 0x7D || C == 0x7E) int const isCrLfRaw = (c == 0x0D && IS_NEXT_CHR_PRESENT - && NEXT_SRC_CHR == 0x0A && IS_BINARY_MODE); + && NEXT_SRC_CHR == 0x0A && !IS_BINARY_MODE); int const isRawOk = 0 - /* A CRLF sequence if a special case, as it CAN be + /* A CRLF sequence is a special case, as it CAN be * printed raw under some circumstances. */ || isCrLfRaw /*print as-is. Risk is pretty low to get in trouble with these*/ |
