aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tr.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/tr.c')
-rw-r--r--coreutils/tr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/tr.c b/coreutils/tr.c
index ae35a9ee3..1e402dfdb 100644
--- a/coreutils/tr.c
+++ b/coreutils/tr.c
@@ -308,7 +308,7 @@ int tr_main(int argc UNUSED_PARAM, char **argv)
308 str1_length = complement(str1, str1_length); 308 str1_length = complement(str1, str1_length);
309 if (*argv) { 309 if (*argv) {
310 if (argv[0][0] == '\0') 310 if (argv[0][0] == '\0')
311 bb_error_msg_and_die("STRING2 cannot be empty"); 311 bb_simple_error_msg_and_die("STRING2 cannot be empty");
312 str2_length = expand(*argv, &str2); 312 str2_length = expand(*argv, &str2);
313 map(vector, str1, str1_length, 313 map(vector, str1, str1_length,
314 str2, str2_length); 314 str2, str2_length);
@@ -333,7 +333,7 @@ int tr_main(int argc UNUSED_PARAM, char **argv)
333 read_chars = safe_read(STDIN_FILENO, str1, TR_BUFSIZ); 333 read_chars = safe_read(STDIN_FILENO, str1, TR_BUFSIZ);
334 if (read_chars <= 0) { 334 if (read_chars <= 0) {
335 if (read_chars < 0) 335 if (read_chars < 0)
336 bb_perror_msg_and_die(bb_msg_read_error); 336 bb_simple_perror_msg_and_die(bb_msg_read_error);
337 break; 337 break;
338 } 338 }
339 in_index = 0; 339 in_index = 0;