diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2020-02-03 00:30:31 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2020-02-03 00:30:31 -0500 |
commit | dff188a6157c10ab6745b1a389c925794d6ca1ba (patch) | |
tree | f498118587f6db75dd19c6657407714711cbe250 /rrdformat/rrdbinary/decode.go | |
parent | 8c121d944aafa0b682030156f6c5dd743dfab607 (diff) |
fix
Diffstat (limited to 'rrdformat/rrdbinary/decode.go')
-rw-r--r-- | rrdformat/rrdbinary/decode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rrdformat/rrdbinary/decode.go b/rrdformat/rrdbinary/decode.go index c4f7760..81d9b05 100644 --- a/rrdformat/rrdbinary/decode.go +++ b/rrdformat/rrdbinary/decode.go @@ -275,7 +275,7 @@ func (obj *Unival) unmarshalRRD(d *Decoder, tag string) error { *obj = Unival{ arch: d.arch, - data: data, + data: data[:d.arch.UnivalWidth], } d.pos += padding + d.arch.UnivalWidth return nil |