diff options
Diffstat (limited to 'usr.bin/mg/echo.c')
-rw-r--r-- | usr.bin/mg/echo.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/mg/echo.c b/usr.bin/mg/echo.c index 212e8e3a4fe..4c41ef13f22 100644 --- a/usr.bin/mg/echo.c +++ b/usr.bin/mg/echo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: echo.c,v 1.15 2001/05/24 09:34:05 mickey Exp $ */ +/* $OpenBSD: echo.c,v 1.16 2001/05/24 09:47:33 art Exp $ */ /* * Echo line reading and writing. @@ -13,6 +13,8 @@ #include "macro.h" #endif /* !NO_MACRO */ +#include "funmap.h" + #include <stdarg.h> static int veread __P((const char *, char *buf, int, int, va_list)); @@ -175,6 +177,10 @@ veread(const char *fp, char *buf, int nbuf, int flag, va_list ap) } else eputc(' '); eformat(fp, ap); + if ((flag & EFDEF) != 0) { + eputs(buf); + cpos += strlen(buf); + } tteeol(); ttflush(); for (;;) { |