aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/ed.c4
-rw-r--r--editors/sed.c2
-rw-r--r--editors/vi.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/editors/ed.c b/editors/ed.c
index 8ed4cd42b..9ce8bead1 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -456,7 +456,7 @@ static void subCommand(const char *cmd, int num1, int num2)
456 */ 456 */
457 nlp = malloc(sizeof(LINE) + lp->len + deltaLen); 457 nlp = malloc(sizeof(LINE) + lp->len + deltaLen);
458 if (nlp == NULL) { 458 if (nlp == NULL) {
459 bb_error_msg("cannot get memory for line"); 459 bb_error_msg("can't get memory for line");
460 return; 460 return;
461 } 461 }
462 462
@@ -983,7 +983,7 @@ static NOINLINE int searchLines(const char *str, int num1, int num2)
983 lp = lp->next; 983 lp = lp->next;
984 } 984 }
985 985
986 bb_error_msg("cannot find string \"%s\"", str); 986 bb_error_msg("can't find string \"%s\"", str);
987 return 0; 987 return 0;
988} 988}
989 989
diff --git a/editors/sed.c b/editors/sed.c
index 27c345921..cc609c3f6 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1337,7 +1337,7 @@ int sed_main(int argc UNUSED_PARAM, char **argv)
1337 G.outname = xasprintf("%sXXXXXX", argv[i]); 1337 G.outname = xasprintf("%sXXXXXX", argv[i]);
1338 nonstdoutfd = mkstemp(G.outname); 1338 nonstdoutfd = mkstemp(G.outname);
1339 if (-1 == nonstdoutfd) 1339 if (-1 == nonstdoutfd)
1340 bb_perror_msg_and_die("cannot create temp file %s", G.outname); 1340 bb_perror_msg_and_die("can't create temp file %s", G.outname);
1341 G.nonstdout = fdopen(nonstdoutfd, "w"); 1341 G.nonstdout = fdopen(nonstdoutfd, "w");
1342 1342
1343 /* Set permissions of output file */ 1343 /* Set permissions of output file */
diff --git a/editors/vi.c b/editors/vi.c
index 1a3997a6b..6a6722875 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2335,7 +2335,7 @@ static int file_insert(const char *fn, char *p, int update_ro_status)
2335 } else if (cnt < size) { 2335 } else if (cnt < size) {
2336 // There was a partial read, shrink unused space text[] 2336 // There was a partial read, shrink unused space text[]
2337 p = text_hole_delete(p + cnt, p + (size - cnt) - 1); // un-do buffer insert 2337 p = text_hole_delete(p + cnt, p + (size - cnt) - 1); // un-do buffer insert
2338 status_line_bold("cannot read all of file \"%s\"", fn); 2338 status_line_bold("can't read all of file \"%s\"", fn);
2339 } 2339 }
2340 if (cnt >= size) 2340 if (cnt >= size)
2341 file_modified++; 2341 file_modified++;