summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-03-25 14:31:31 +0000
committerwosch <wosch@FreeBSD.org>1997-03-25 14:31:31 +0000
commit6f2f806e06ad1b963007c6bb878322d7bdf5b77d (patch)
tree0c1fd9697b075e97d73a28d5169b101982d4c1a2
parenta4d68a99411e0c31ff3f00698888838c9dc134c1 (diff)
downloadFreeBSD-src-6f2f806e06ad1b963007c6bb878322d7bdf5b77d.zip
FreeBSD-src-6f2f806e06ad1b963007c6bb878322d7bdf5b77d.tar.gz
Be tolerant to old uuencode programs which encode the ASCII NUL
character as character 32 (space) instead character 64 (`). See also 'The UNIX-HATERS Handbook', page 82-83.
-rw-r--r--usr.bin/uudecode/uudecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c
index d3fef7a..ebe2832 100644
--- a/usr.bin/uudecode/uudecode.c
+++ b/usr.bin/uudecode/uudecode.c
@@ -199,7 +199,7 @@ decode2(flag)
return(1);
}
#define DEC(c) (((c) - ' ') & 077) /* single character decode */
-#define IS_DEC(c) ( (((c) - ' ') > 0) && (((c) - ' ') <= 077 + 1) )
+#define IS_DEC(c) ( (((c) - ' ') >= 0) && (((c) - ' ') <= 077 + 1) )
/* #define IS_DEC(c) (1) */
#define OUT_OF_RANGE \
OpenPOWER on IntegriCloud