Cast isspace() argument to unsigned char.
authormmcc <mmcc@openbsd.org>
Fri, 16 Oct 2015 18:21:43 +0000 (18:21 +0000)
committermmcc <mmcc@openbsd.org>
Fri, 16 Oct 2015 18:21:43 +0000 (18:21 +0000)
ok jca@

usr.bin/mail/fio.c

index a10545f..8f30b9a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: fio.c,v 1.35 2015/10/16 17:56:07 mmcc Exp $   */
+/*     $OpenBSD: fio.c,v 1.36 2015/10/16 18:21:43 mmcc Exp $   */
 /*     $NetBSD: fio.c,v 1.8 1997/07/07 22:57:55 phil Exp $     */
 
 /*
@@ -142,7 +142,7 @@ setptr(FILE *ibuf, off_t offset)
                } else if (inhead) {
                        for (cp = linebuf, cp2 = "status";; cp++) {
                                if ((c = (unsigned char)*cp2++) == 0) {
-                                       while (isspace(*cp++))
+                                       while (isspace((unsigned char)*cp++))
                                                ;
                                        if (cp[-1] != ':')
                                                break;