diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/uuencode/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/uuencode/uuencode.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/uuencode/Makefile b/usr.bin/uuencode/Makefile index dfd1d59..f5d9855 100644 --- a/usr.bin/uuencode/Makefile +++ b/usr.bin/uuencode/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= uuencode +WARNS?= 2 MAN= uuencode.1 uuencode.format.5 MLINKS= uuencode.1 uudecode.1 \ uuencode.format.5 uuencode.5 diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c index e8696e9..d91222a 100644 --- a/usr.bin/uuencode/uuencode.c +++ b/usr.bin/uuencode/uuencode.c @@ -120,11 +120,11 @@ encode() ch = ENC(ch); if (putchar(ch) == EOF) break; - ch = (*p << 4) & 060 | (p[1] >> 4) & 017; + ch = ((*p << 4) & 060) | ((p[1] >> 4) & 017); ch = ENC(ch); if (putchar(ch) == EOF) break; - ch = (p[1] << 2) & 074 | (p[2] >> 6) & 03; + ch = ((p[1] << 2) & 074) | ((p[2] >> 6) & 03); ch = ENC(ch); if (putchar(ch) == EOF) break; |