summaryrefslogtreecommitdiffstats
path: root/usr.bin/uuencode
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-02-18 17:08:27 +0000
committerwosch <wosch@FreeBSD.org>1997-02-18 17:08:27 +0000
commitc4a7bc52220b2be10075dea390d51ec98cb350ac (patch)
tree90a1d0659d7a9e22a037e9b06380673db5fb9455 /usr.bin/uuencode
parenta3ce262583a2f61248ebc44f44cc01fdee22183d (diff)
downloadFreeBSD-src-c4a7bc52220b2be10075dea390d51ec98cb350ac.zip
FreeBSD-src-c4a7bc52220b2be10075dea390d51ec98cb350ac.tar.gz
Fix ranges - off by one.
Diffstat (limited to 'usr.bin/uuencode')
-rw-r--r--usr.bin/uuencode/uuencode.format.57
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/uuencode/uuencode.format.5 b/usr.bin/uuencode/uuencode.format.5
index 1b1ed73..c2a89e1 100644
--- a/usr.bin/uuencode/uuencode.format.5
+++ b/usr.bin/uuencode/uuencode.format.5
@@ -69,12 +69,15 @@ followed by a newline.
The character count is a single printing character,
and represents an integer, the number of bytes
the rest of the line represents.
-Such integers are always in the range from 0 to 63 and can
+Such integers are always in the range from 1 to 45 or 64 and can
be determined by subtracting the character space (octal 40)
from the character.
+Character 64 represents a count of zero.
.Pp
Groups of 3 bytes are stored in 4 characters, 6 bits per character.
-All are offset by a space to make the characters printing.
+All characters are always in range from 1 to 64 and are offset by a
+space (octal 40) to make the characters printing. Character
+64 represents a count of zero.
The last line may be shorter than the normal 45 bytes.
If the size is not a multiple of 3, this fact can be determined
by the value of the count on the last line.
OpenPOWER on IntegriCloud