aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/uuencode.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/uuencode.c')
-rw-r--r--toys/posix/uuencode.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/toys/posix/uuencode.c b/toys/posix/uuencode.c
index 2323c98d..ca3f10d3 100644
--- a/toys/posix/uuencode.c
+++ b/toys/posix/uuencode.c
@@ -28,16 +28,7 @@ void uuencode_main(void)
if (toys.optc > 1) fd = xopen(toys.optargs[0], O_RDONLY);
- // base64 table
-
- p = toybuf;
- for (i = 'A'; i != ':'; i++) {
- if (i == 'Z'+1) i = 'a';
- if (i == 'z'+1) i = '0';
- *(p++) = i;
- }
- *(p++) = '+';
- *(p++) = '/';
+ base64_init(toybuf);
xprintf("begin%s 744 %s\n", m ? "-base64" : "", name);
for (;;) {