Skip to content

Commit

Permalink
Merge pull request #238 from tj-actions/bug/fix-bug-copy-table-with-m…
Browse files Browse the repository at this point in the history
…ore-data-than-the-initial

Resolve bug copying new table data
  • Loading branch information
jackton1 committed Dec 14, 2021
2 parents 96af244 + ba18621 commit 3d943dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func ReplaceBytesInBetween(value []byte, startIndex int, endIndex int, new []byt
w := 0

w += copy(t[:startIndex], value[:startIndex])
w += copy(t[w:endIndex], new)
w += copy(t[w:w+len(new)], new)
w += copy(t[w:], value[endIndex:])
return t[0:w]
}

0 comments on commit 3d943dd

Please sign in to comment.