summaryrefslogtreecommitdiff
path: root/ex_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'ex_unix.c')
-rw-r--r--ex_unix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ex_unix.c b/ex_unix.c
index 4ad17f9..0341a52 100644
--- a/ex_unix.c
+++ b/ex_unix.c
@@ -101,7 +101,7 @@ unix0(int warn)
char printub, puxb[UXBSIZE + sizeof (int)];
printub = 0;
- CP(puxb, uxb);
+ lcpy(puxb, uxb, sizeof puxb);
c = getchar();
if (c == '\n' || c == EOF)
error(catgets(catd, 1, 192,
@@ -179,7 +179,7 @@ uexp:
if (warn && hush == 0 && chng && xchng != chng && value(WARN) && dol > zero) {
xchng = chng;
vnfl();
- printf(mesg(catgets(catd, 1, 197,
+ ex_printf(mesg(catgets(catd, 1, 197,
"[No write]|[No write since last change]")));
noonl();
flush();
@@ -224,7 +224,7 @@ unixex(char *opt, char *up, int newstdin, int mode)
if (dosusp)
signal(SIGTSTP, SIG_DFL);
#endif
- if (inopen)
+ /*if (inopen)*/
f = setty(normf);
if ((mode & 1) && pipe(pvec) < 0) {
/* Newstdin should be io so it will be closed */
@@ -276,7 +276,7 @@ unixex(char *opt, char *up, int newstdin, int mode)
if (ruptible)
signal(SIGINT, SIG_DFL);
execl(svalue(SHELL), "sh", opt, up, (char *)0);
- printf(catgets(catd, 1, 201, "No %s!\n"), svalue(SHELL));
+ ex_printf(catgets(catd, 1, 201, "No %s!\n"), svalue(SHELL));
error(NOSTR);
}
if (mode & 1) {
@@ -306,7 +306,7 @@ unixwt(int c, struct termios f)
setty(f);
setrupt();
if (!inopen && c && hush == 0) {
- printf("!\n");
+ ex_printf("!\n");
flush();
termreset();
gettmode();