From: markus schnalke Date: Tue, 3 Nov 2015 07:37:57 +0000 (+0100) Subject: More sensible check for 7bit ASCII X-Git-Tag: mmh-0.3~66 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=a1a744d898ec8842871dca302e6ae54d9233413f;p=mmh More sensible check for 7bit ASCII Always true condition reported by -Wextra -pendatic. --- diff --git a/uip/send.c b/uip/send.c index bab1699..df81340 100644 --- a/uip/send.c +++ b/uip/send.c @@ -322,10 +322,10 @@ sendsbr(char **vec, int vecp, char *drft, struct stat *st) static int contains_non_ascii(char *str) { - char *cp; + unsigned char *cp; for (cp = str; *cp; cp++) { - if (*cp > 127 || *cp < 0) { + if (*cp > 127) { return 1; } }