This commit is contained in:
Zack Scholl 2018-09-24 06:10:31 -07:00
parent 711f8dfeec
commit 50c29e7334
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func (c Comm) Read() (buf []byte, numBytes int, bs []byte, err error) {
}
tmp = bytes.TrimRight(tmp, "\x00")
copy(buf[bufStart:bufStart+len(tmp)], tmp[:])
bufStart += len(tmp)
bufStart = len(buf)
if bufStart < numBytes {
tmp = tmp[:numBytes-bufStart]
} else {