diff options
Diffstat (limited to 'coreutils/uuencode.c')
| -rw-r--r-- | coreutils/uuencode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 58538365e..e8f8d541c 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c | |||
| @@ -47,12 +47,12 @@ int uuencode_main(int argc, char **argv) | |||
| 47 | bb_show_usage(); | 47 | bb_show_usage(); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | bb_printf("begin%s %o %s", tbl == bb_uuenc_tbl_std ? "" : "-base64", mode, argv[argc - 1]); | 50 | printf("begin%s %o %s", tbl == bb_uuenc_tbl_std ? "" : "-base64", mode, argv[argc - 1]); |
| 51 | 51 | ||
| 52 | while ((size = fread(src_buf, 1, src_buf_size, src_stream)) > 0) { | 52 | while ((size = fread(src_buf, 1, src_buf_size, src_stream)) > 0) { |
| 53 | if (size != src_buf_size) { | 53 | if (size != src_buf_size) { |
| 54 | /* write_size is always 60 until the last line */ | 54 | /* write_size is always 60 until the last line */ |
| 55 | write_size=(4 * ((size + 2) / 3)); | 55 | write_size = (4 * ((size + 2) / 3)); |
| 56 | /* pad with 0s so we can just encode extra bits */ | 56 | /* pad with 0s so we can just encode extra bits */ |
| 57 | memset(&src_buf[size], 0, src_buf_size - size); | 57 | memset(&src_buf[size], 0, src_buf_size - size); |
| 58 | } | 58 | } |
| @@ -67,9 +67,9 @@ int uuencode_main(int argc, char **argv) | |||
| 67 | bb_perror_msg_and_die(bb_msg_write_error); | 67 | bb_perror_msg_and_die(bb_msg_write_error); |
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | bb_printf(tbl == bb_uuenc_tbl_std ? "\n`\nend\n" : "\n====\n"); | 70 | printf(tbl == bb_uuenc_tbl_std ? "\n`\nend\n" : "\n====\n"); |
| 71 | 71 | ||
| 72 | xferror(src_stream, "source"); /* TODO - Fix this! */ | 72 | die_if_ferror(src_stream, "source"); /* TODO - Fix this! */ |
| 73 | 73 | ||
| 74 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); | 74 | fflush_stdout_and_exit(EXIT_SUCCESS); |
| 75 | } | 75 | } |
