Fix panic in Fragment.DataBlocks() duo to typo
store vs stored
This commit is contained in:
parent
d206b8c2bd
commit
f4fff47365
1 changed files with 1 additions and 1 deletions
2
data.go
2
data.go
|
@ -164,7 +164,7 @@ func (df *DataFragment) DataBlocks(dataType uint8, confirm bool) ([]*DataBlock,
|
||||||
|
|
||||||
store := int(block.Length)
|
store := int(block.Length)
|
||||||
if df.Stored-stored < store {
|
if df.Stored-stored < store {
|
||||||
store = df.Stored - store
|
store = df.Stored - stored
|
||||||
}
|
}
|
||||||
copy(block.Data, df.Data[stored:stored+store])
|
copy(block.Data, df.Data[stored:stored+store])
|
||||||
stored += store
|
stored += store
|
||||||
|
|
Loading…
Add table
Reference in a new issue