ntpd: renew cur_time after script run, it can take a while
[oweals/busybox.git] / editors / ed.c
index dbd8020759ffe0c25f8d55d10eed1c47a766c87e..9ce8bead109565a08e2aed038235797a99598551 100644 (file)
@@ -456,7 +456,7 @@ static void subCommand(const char *cmd, int num1, int num2)
                 */
                nlp = malloc(sizeof(LINE) + lp->len + deltaLen);
                if (nlp == NULL) {
-                       bb_error_msg("cannot get memory for line");
+                       bb_error_msg("can't get memory for line");
                        return;
                }
 
@@ -686,7 +686,7 @@ static int readLines(const char *file, int num)
        cc = 0;
 
        printf("\"%s\", ", file);
-       fflush(stdout);
+       fflush_all();
 
        do {
                cp = memchr(bufPtr, '\n', bufUsed);
@@ -775,7 +775,7 @@ static int writeLines(const char *file, int num1, int num2)
        }
 
        printf("\"%s\", ", file);
-       fflush(stdout);
+       fflush_all();
 
        lp = findLine(num1);
        if (lp == NULL) {
@@ -983,7 +983,7 @@ static NOINLINE int searchLines(const char *str, int num1, int num2)
                lp = lp->next;
        }
 
-       bb_error_msg("cannot find string \"%s\"", str);
+       bb_error_msg("can't find string \"%s\"", str);
        return 0;
 }