From a1a744d898ec8842871dca302e6ae54d9233413f Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Tue, 3 Nov 2015 08:37:57 +0100 Subject: [PATCH] More sensible check for 7bit ASCII Always true condition reported by -Wextra -pendatic. --- uip/send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 1.7.10.4