From 1cafb5eab0b30e5f5a05737a075123af53153cb1 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 17 Aug 2017 13:17:22 +0200 Subject: add support for SMTPUTF8 --- qsutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qsutil.c') diff --git a/qsutil.c b/qsutil.c index a769829..43890d0 100644 --- a/qsutil.c +++ b/qsutil.c @@ -24,11 +24,11 @@ void nomem() { log1("alert: out of memory, sleeping...\n"); sleep(10); } void pausedir(dir) char *dir; { log3("alert: unable to opendir ",dir,", sleeping...\n"); sleep(10); } -static int issafe(ch) char ch; +static int issafe(ch) unsigned char ch; { if (ch == '%') return 0; /* general principle: allman's code is crap */ if (ch < 33) return 0; - if (ch > 126) return 0; + if (ch > 126 && ch <= 127) return 0; return 1; } -- cgit v1.2.3