diff options
| author | Jeff Carr <[email protected]> | 2019-06-16 12:49:05 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-16 12:49:05 -0700 |
| commit | f2fa2c1d3188264c5fa9f65812c4c35931f63fc9 (patch) | |
| tree | bb0716b87ce0c6593e154ccf2f4dbf7c79809936 /run.go | |
| parent | 5d4ad13b7736b08ae8987dd31706c90f36a0118a (diff) | |
trim null
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'run.go')
| -rw-r--r-- | run.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |
