summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/cmd2.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/cmd2.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/cmd2.c')
-rw-r--r--usr.bin/mail/cmd2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/cmd2.c b/usr.bin/mail/cmd2.c
index 5ab6b85..b25af30 100644
--- a/usr.bin/mail/cmd2.c
+++ b/usr.bin/mail/cmd2.c
@@ -249,7 +249,7 @@ snarf(linebuf, flag)
* Strip away trailing blanks.
*/
- while (cp > linebuf && isspace(*cp))
+ while (cp > linebuf && isspace((unsigned char)*cp))
cp--;
*++cp = '\0';
@@ -257,13 +257,13 @@ snarf(linebuf, flag)
* Now search for the beginning of the file name.
*/
- while (cp > linebuf && !isspace(*cp))
+ while (cp > linebuf && !isspace((unsigned char)*cp))
cp--;
if (*cp == '\0') {
printf("No file specified.\n");
return (NULL);
}
- if (isspace(*cp))
+ if (isspace((unsigned char)*cp))
*cp++ = '\0';
else
*flag = 0;
OpenPOWER on IntegriCloud