summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/btrfs-rec/inspect_dbgsums.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/btrfs-rec/inspect_dbgsums.go b/cmd/btrfs-rec/inspect_dbgsums.go
index e9fadce..8e230f4 100644
--- a/cmd/btrfs-rec/inspect_dbgsums.go
+++ b/cmd/btrfs-rec/inspect_dbgsums.go
@@ -43,7 +43,8 @@ func init() {
return nil, err
}
var scanResults btrfsinspect.ScanDevicesResult
- if err := lowmemjson.DecodeThenEOF(fh, &scanResults); err != nil {
+ buf := bufio.NewReader(fh)
+ if err := lowmemjson.DecodeThenEOF(buf, &scanResults); err != nil {
return nil, err
}
_ = fh.Close()