diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-07-28 21:34:25 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-07-28 21:34:25 +0000 |
commit | 4e664ac51d974091097aaa436d72105e3446d90a (patch) | |
tree | 6c3cfebad0a657842d4b73cffc7aff75085b032b | |
parent | 089decab6543f0570f72e821620aa83165caada3 (diff) | |
download | busybox-4e664ac51d974091097aaa436d72105e3446d90a.tar.gz |
The src buffer size has to be a multiple of 3 (as i noted, but didnt do).
-rw-r--r-- | coreutils/uuencode.c | 2 | ||||
-rw-r--r-- | uuencode.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index d46fb1588..68d6f19a7 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c @@ -82,7 +82,7 @@ static void base64_encode (const char *s, const char *store, const int length, c int uuencode_main(int argc, char **argv) { - const int src_buf_size = BUFSIZ; // This *MUST* be a multiple of 3 + const int src_buf_size = 600; // This *MUST* be a multiple of 3 const int dst_buf_size = 4 * ((src_buf_size + 2) / 3); RESERVE_BB_BUFFER(src_buf, src_buf_size + 1); RESERVE_BB_BUFFER(dst_buf, dst_buf_size + 1); diff --git a/uuencode.c b/uuencode.c index d46fb1588..68d6f19a7 100644 --- a/uuencode.c +++ b/uuencode.c @@ -82,7 +82,7 @@ static void base64_encode (const char *s, const char *store, const int length, c int uuencode_main(int argc, char **argv) { - const int src_buf_size = BUFSIZ; // This *MUST* be a multiple of 3 + const int src_buf_size = 600; // This *MUST* be a multiple of 3 const int dst_buf_size = 4 * ((src_buf_size + 2) / 3); RESERVE_BB_BUFFER(src_buf, src_buf_size + 1); RESERVE_BB_BUFFER(dst_buf, dst_buf_size + 1); |