summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/send.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-12-19 21:50:22 +0000
committerache <ache@FreeBSD.org>2001-12-19 21:50:22 +0000
commit8d59503ab28990d5f3e683cef1f40660c7b50508 (patch)
treea101958a87607acd1ecdfdaf29ad688ec4ed0209 /usr.bin/mail/send.c
parent551ea08f0f87088f86af940cfa8a858ab92dddf3 (diff)
downloadFreeBSD-src-8d59503ab28990d5f3e683cef1f40660c7b50508.zip
FreeBSD-src-8d59503ab28990d5f3e683cef1f40660c7b50508.tar.gz
Add (unsigned char) cast to ctype macros
ftell->ftello, fseek->fseeko File 'newsize' type int->off_t Add visible (long) cast to fsize() when it called to small one message file and result is assigned to long.
Diffstat (limited to 'usr.bin/mail/send.c')
-rw-r--r--usr.bin/mail/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/send.c b/usr.bin/mail/send.c
index 58f029a..7351cc5 100644
--- a/usr.bin/mail/send.c
+++ b/usr.bin/mail/send.c
@@ -123,10 +123,10 @@ sendmessage(mp, obuf, doign, prefix)
* Pick up the header field if we have one.
*/
for (cp = line; (c = *cp++) != '\0' && c != ':' &&
- !isspace(c);)
+ !isspace((unsigned char)c);)
;
cp2 = --cp;
- while (isspace(*cp++))
+ while (isspace((unsigned char)*cp++))
;
if (cp[-1] != ':') {
/*
OpenPOWER on IntegriCloud