summaryrefslogtreecommitdiff
path: root/src/quotprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quotprint.c')
-rw-r--r--src/quotprint.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/quotprint.c b/src/quotprint.c
index dbb06cc..683ea4f 100644
--- a/src/quotprint.c
+++ b/src/quotprint.c
@@ -89,10 +89,8 @@ PRIVATE(char) endOfFile;
INLINE(void)
printHelp( void ){
printf("\n"
- " quotprint - QuotedPrintable codec\n"
- " Version: " STR_QUOT(PROJECT_VERSION) "\n"
+ " quotprint " STR_QUOT(PROJECT_VERSION) "\n"
" \n"
- " About the quoted-printable encoding see:\n"
" https://www.rfc-editor.org/rfc/rfc2045#section-6.7\n"
" \n"
" -e `encode` to QuotedPrintable\n"
@@ -100,6 +98,8 @@ printHelp( void ){
" -b When given to `-e`, will encode `binary` safe. Eg newlines will\n"
" be quoted always.\n"
" \n"
+ " BUG: Bad decoding when trailing whitespaces present.\n"
+ " Fix: Make sure input does not have trailing whitespace.\n"
"\n");
}
@@ -139,8 +139,7 @@ nextArg:
verify:
err = FLG_isEnc | FLG_isDec;
if( (this->flg & err) == err || (this->flg & err) == 0 ){
- fprintf(stderr, "EINVAL: Choose exactly ONE of `encode` XOR `decode`.\n");
- return -1;
+ this->flg |= FLG_isEnc|FLG_isBinary; /* fallback to encode */
}
return 0;
}