summaryrefslogtreecommitdiff
path: root/ex_cmds2.c
diff options
context:
space:
mode:
Diffstat (limited to 'ex_cmds2.c')
-rw-r--r--ex_cmds2.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ex_cmds2.c b/ex_cmds2.c
index 8d822bd..5548af6 100644
--- a/ex_cmds2.c
+++ b/ex_cmds2.c
@@ -281,7 +281,7 @@ erewind(void)
argv = argv0;
args = args0;
if (argc > 1 && !hush) {
- printf(mesg(catgets(catd, 1, 30, "%d files@to edit")), argc);
+ ex_printf(mesg(catgets(catd, 1, 30, "%d files@to edit")), argc);
if (inopen)
putchar(' ');
else
@@ -346,7 +346,7 @@ next(void)
morargc = argc;
isalt = (strcmp(altfile, args)==0) + 1;
if (savedfile[0])
- strcpy(altfile, savedfile);
+ lcpy(altfile, savedfile, sizeof altfile);
safecp(savedfile, args, sizeof savedfile, "File name too long");
argc--;
args = argv ? *++argv : strend(args) + 1;
@@ -554,7 +554,7 @@ tailprim(register char *comm, int xi, bool notinvis)
c = peekchar();
if (notinvis || isalpha(c)
#ifdef BIT8
- || xi == 0 && (c&(0200|QUOTE)) == 0200
+ || (xi == 0 && (c&(0200|QUOTE)) == 0200)
#endif
) {
/*
@@ -568,7 +568,7 @@ tailprim(register char *comm, int xi, bool notinvis)
while (cp < &tcommand[19] && (c = peekchar(),
isalpha(c)
#ifdef BIT8
- || xi == 0 && (c&(0200|QUOTE)) == 0200
+ || (xi == 0 && (c&(0200|QUOTE)) == 0200)
#endif
))
*cp++ = getchar();
@@ -618,6 +618,7 @@ vcontin(bool ask)
if (ask) {
merror(catgets(catd, 1, 38,
"[Hit return to continue] "));
+ getline(*dot);
flush();
}
if (ask) {