From 76acb61fa3e9f0fc8257407433d84643736cad5d Mon Sep 17 00:00:00 2001 From: hiddenalpha.ch Date: Sat, 29 Aug 2026 22:45:20 +0200 Subject: Guess-fix some stuff that looks like a bug --- src/quotprint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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*/ -- cgit v1.3.1