summaryrefslogtreecommitdiff
path: root/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'run.go')
-rw-r--r--run.go2
1 files changed, 1 insertions, 1 deletions
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
}