trim null

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-16 12:49:05 -07:00
parent 5d4ad13b77
commit f2fa2c1d31
1 changed files with 1 additions and 1 deletions

2
run.go
View File

@ -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
}