aboutsummaryrefslogtreecommitdiffstats
path: root/formats
diff options
context:
space:
mode:
Diffstat (limited to 'formats')
-rw-r--r--formats/pktline/decoder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/pktline/decoder.go b/formats/pktline/decoder.go
index 34e6f51..789ba7d 100644
--- a/formats/pktline/decoder.go
+++ b/formats/pktline/decoder.go
@@ -32,7 +32,7 @@ func (d *Decoder) ReadLine() (string, error) {
func (d *Decoder) readLine() (string, error) {
raw := make([]byte, HeaderLength)
- if _, err := d.r.Read(raw); err != nil {
+ if _, err := io.ReadFull(d.r, raw); err != nil {
return "", err
}