aboutsummaryrefslogtreecommitdiffstats
path: root/utils/binary
diff options
context:
space:
mode:
authorAntonio Jesus Navarro Perez <antonio@sourced.tech>2017-03-02 16:01:26 +0100
committerAntonio Jesus Navarro Perez <antonio@sourced.tech>2017-03-02 16:01:26 +0100
commit5bf511770f27a14def9d59c375b82c51ab34ba25 (patch)
tree940f689abdc2f03d1e620d1477a1685ac9a58132 /utils/binary
parentd105e15d91e7553d9d40d6e9fffe0a5008cf8afe (diff)
downloadgo-git-5bf511770f27a14def9d59c375b82c51ab34ba25.tar.gz
Return values of Read not checked (fix #65)
Diffstat (limited to 'utils/binary')
-rw-r--r--utils/binary/read.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/binary/read.go b/utils/binary/read.go
index 608583b..7cd6184 100644
--- a/utils/binary/read.go
+++ b/utils/binary/read.go
@@ -27,7 +27,7 @@ func ReadUntil(r io.Reader, delim byte) ([]byte, error) {
var buf [1]byte
value := make([]byte, 0, 16)
for {
- if _, err := r.Read(buf[:]); err != nil {
+ if _, err := io.ReadFull(r, buf[:]); err != nil {
if err == io.EOF {
return nil, err
}