diff options
Diffstat (limited to 'comm/OLD')
-rw-r--r-- | comm/OLD/tellagent.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/comm/OLD/tellagent.cc b/comm/OLD/tellagent.cc index 4123512..d112c75 100644 --- a/comm/OLD/tellagent.cc +++ b/comm/OLD/tellagent.cc @@ -25,6 +25,7 @@ #include <string.h> #include <stdlib.h> #include <sys/wait.h> +#include <fcntl.h> class INPUT; class TELLER; @@ -63,8 +64,8 @@ INPUT :: HandleRead () SysError (ErrFatal, "read input"); if (n == 0) { if (input.BufLength ()) { - input.Append ('\n'); - input.Append ('\0'); + input.WriteChar ('\n'); + input.WriteChar ('\0'); tell->Send ((const char*) input.Buffer ()); input.Flush (); } @@ -99,7 +100,7 @@ TELLER :: Execute (const UchTextLine& l) return isCmdOk; UchMsgBuffer buf; l.Unparse (&buf); - buf.Append ('\n'); + buf.WriteChar ('\n'); out->WriteBuffer (buf); return isCmdOk; } |