2
0

handle null bytes

This commit is contained in:
Karl Seguin
2014-12-23 23:10:36 +07:00
parent 3c61b16776
commit 43e06f9c62
2 changed files with 19 additions and 0 deletions
+4
View File
@@ -191,6 +191,10 @@ func (r *msgReader) readBytes(count int32) []byte {
return nil
}
if count < 1 {
return nil
}
b := make([]byte, int(count))
_, err := io.ReadFull(r.reader, b)