diff options
| author | hiddenalpha.ch | 2026-08-29 22:45:20 +0200 |
|---|---|---|
| committer | hiddenalpha.ch | 2026-08-29 22:45:20 +0200 |
| commit | 76acb61fa3e9f0fc8257407433d84643736cad5d (patch) | |
| tree | 6c9eae4d347fc4daf1fec8aef0f3a5e41168a558 /src/quotprint.c | |
| parent | bc42bf28e91116ff9a433bc71a26561b17226752 (diff) | |
| download | quotprint-76acb61fa3e9f0fc8257407433d84643736cad5d.tar.gz quotprint-76acb61fa3e9f0fc8257407433d84643736cad5d.zip | |
Guess-fix some stuff that looks like a bug
Diffstat (limited to 'src/quotprint.c')
| -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*/ |
