diff options
author | wosch <wosch@FreeBSD.org> | 1997-03-25 14:31:31 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1997-03-25 14:31:31 +0000 |
commit | 6f2f806e06ad1b963007c6bb878322d7bdf5b77d (patch) | |
tree | 0c1fd9697b075e97d73a28d5169b101982d4c1a2 | |
parent | a4d68a99411e0c31ff3f00698888838c9dc134c1 (diff) | |
download | FreeBSD-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.c | 2 |
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 \ |