aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uuencode.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/uuencode.c')
-rw-r--r--coreutils/uuencode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c
index 490f8d1bd..fe9e8c664 100644
--- a/coreutils/uuencode.c
+++ b/coreutils/uuencode.c
@@ -11,7 +11,7 @@
11#include "libbb.h" 11#include "libbb.h"
12 12
13enum { 13enum {
14 SRC_BUF_SIZE = 45, /* This *MUST* be a multiple of 3 */ 14 SRC_BUF_SIZE = 15*3, /* This *MUST* be a multiple of 3 */
15 DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3), 15 DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3),
16}; 16};
17 17
@@ -33,7 +33,7 @@ int uuencode_main(int argc UNUSED_PARAM, char **argv)
33 } 33 }
34 argv += optind; 34 argv += optind;
35 if (argv[1]) { 35 if (argv[1]) {
36 src_fd = xopen(*argv, O_RDONLY); 36 src_fd = xopen(argv[0], O_RDONLY);
37 fstat(src_fd, &stat_buf); 37 fstat(src_fd, &stat_buf);
38 mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); 38 mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
39 argv++; 39 argv++;