Skip to content

Commit

Permalink
Merge pull request #2365 from noffle/length_zero
Browse files Browse the repository at this point in the history
Fixes range error by using > 0 length buffer.
  • Loading branch information
whyrusleeping committed Feb 19, 2016
2 parents 944f749 + 2c4de53 commit 9cdb69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mfs/mfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ func actorWriteFile(d *Directory) error {
return nil
}

size := rand.Intn(1024)
size := rand.Intn(1024) + 1
buf := make([]byte, size)
randbo.New().Read(buf)

Expand Down

0 comments on commit 9cdb69c

Please sign in to comment.