Fix panic in Fragment.DataBlocks() duo to typo

store vs stored
pull/2/head
Martin Hebnes Pedersen 6 years ago
parent d206b8c2bd
commit f4fff47365

@ -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…
Cancel
Save