diff options
-rw-r--r-- | proto/io.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/io.go b/proto/io.go index ba54f75..34421b1 100644 --- a/proto/io.go +++ b/proto/io.go @@ -128,7 +128,7 @@ func Read(fd io.Reader, data interface{}) { data.nslcdRead(fd) case *[]byte: if len(*data) > 0 { - _, err := fd.Read(*data) + _, err := io.ReadFull(fd, *data) if err != nil { panic(err) } |