diff --git a/run.go b/run.go index 3e24793..bea5a1a 100644 --- a/run.go +++ b/run.go @@ -179,6 +179,6 @@ func (cmd *Shell) ReadToBuffer(f *File) bool { // log.Debugln("ReadToBuffer() count = ", count) // tmp := Chomp(oneByte) // log.Debugln("ReadToBuffer() tmp = ", tmp) - io.WriteString(cmd.Buffer, string(oneByte)) + io.WriteString(cmd.Buffer, strings.Trim(string(oneByte), "\x00")) return false }