diff options
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/uuencode.c | 11 |
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 (;;) { |