aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uudecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r--coreutils/uudecode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index 5f69e62b3..dc8ef5cca 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -82,7 +82,7 @@ static void FAST_FUNC read_stduu(FILE *src_stream, FILE *dst_stream, int flags U
82 continue; 82 continue;
83 } 83 }
84 if (encoded_len > 60) { 84 if (encoded_len > 60) {
85 bb_error_msg_and_die("line too long"); 85 bb_simple_error_msg_and_die("line too long");
86 } 86 }
87 87
88 dst = line; 88 dst = line;
@@ -108,7 +108,7 @@ static void FAST_FUNC read_stduu(FILE *src_stream, FILE *dst_stream, int flags U
108 fwrite(line, 1, dst - line, dst_stream); 108 fwrite(line, 1, dst - line, dst_stream);
109 free(line); 109 free(line);
110 } 110 }
111 bb_error_msg_and_die("short file"); 111 bb_simple_error_msg_and_die("short file");
112} 112}
113#endif 113#endif
114 114
@@ -166,7 +166,7 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv)
166 /* fclose_if_not_stdin(src_stream); - redundant */ 166 /* fclose_if_not_stdin(src_stream); - redundant */
167 return EXIT_SUCCESS; 167 return EXIT_SUCCESS;
168 } 168 }
169 bb_error_msg_and_die("no 'begin' line"); 169 bb_simple_error_msg_and_die("no 'begin' line");
170} 170}
171#endif 171#endif
172 172
@@ -216,7 +216,7 @@ int base64_main(int argc UNUSED_PARAM, char **argv)
216 if (!size) 216 if (!size)
217 break; 217 break;
218 if ((ssize_t)size < 0) 218 if ((ssize_t)size < 0)
219 bb_perror_msg_and_die(bb_msg_read_error); 219 bb_simple_perror_msg_and_die(bb_msg_read_error);
220 /* Encode the buffer we just read in */ 220 /* Encode the buffer we just read in */
221 bb_uuencode(dst_buf, src_buf, size, bb_uuenc_tbl_base64); 221 bb_uuencode(dst_buf, src_buf, size, bb_uuenc_tbl_base64);
222 xwrite(STDOUT_FILENO, dst_buf, 4 * ((size + 2) / 3)); 222 xwrite(STDOUT_FILENO, dst_buf, 4 * ((size + 2) / 3));