aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uudecode.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-11-12 08:27:51 +0000
committerRon Yorston <rmy@pobox.com>2020-11-12 08:27:51 +0000
commitead8b92e3d66ab45235e137f85fb3a529dcc64ef (patch)
treeaf268270382dad969218063d4a8120fc91a9e631 /coreutils/uudecode.c
parent567728c22dddea4ed33b8a69641ba2e0c3f1f600 (diff)
parent64981b4c8e88812c322bee3832f1d421ff670ed5 (diff)
downloadbusybox-w32-ead8b92e3d66ab45235e137f85fb3a529dcc64ef.tar.gz
busybox-w32-ead8b92e3d66ab45235e137f85fb3a529dcc64ef.tar.bz2
busybox-w32-ead8b92e3d66ab45235e137f85fb3a529dcc64ef.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r--coreutils/uudecode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index dc8ef5cca..5b2edd649 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -110,9 +110,7 @@ static void FAST_FUNC read_stduu(FILE *src_stream, FILE *dst_stream, int flags U
110 } 110 }
111 bb_simple_error_msg_and_die("short file"); 111 bb_simple_error_msg_and_die("short file");
112} 112}
113#endif
114 113
115#if ENABLE_UUDECODE
116int uudecode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 114int uudecode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
117int uudecode_main(int argc UNUSED_PARAM, char **argv) 115int uudecode_main(int argc UNUSED_PARAM, char **argv)
118{ 116{
@@ -202,10 +200,10 @@ int base64_main(int argc UNUSED_PARAM, char **argv)
202 *--argv = (char*)"-"; 200 *--argv = (char*)"-";
203 src_stream = xfopen_stdin(argv[0]); 201 src_stream = xfopen_stdin(argv[0]);
204 if (opts) { 202 if (opts) {
205 read_base64(src_stream, stdout, /*flags:*/ (char)EOF); 203 read_base64(src_stream, stdout, /*flags:*/ (unsigned char)EOF);
206 } else { 204 } else {
207 enum { 205 enum {
208 SRC_BUF_SIZE = 76/4*3, /* This *MUST* be a multiple of 3 */ 206 SRC_BUF_SIZE = 76 / 4 * 3, /* this *MUST* be a multiple of 3 */
209 DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3), 207 DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3),
210 }; 208 };
211 char src_buf[SRC_BUF_SIZE]; 209 char src_buf[SRC_BUF_SIZE];