diff options
Diffstat (limited to 'common/bytes.go')
-rw-r--r-- | common/bytes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/bytes.go b/common/bytes.go index cbab2c3fa..0c257a1ee 100644 --- a/common/bytes.go +++ b/common/bytes.go @@ -100,7 +100,7 @@ func Hex2BytesFixed(str string, flen int) []byte { return h[len(h)-flen:] } hh := make([]byte, flen) - copy(hh[flen-len(h):flen], h[:]) + copy(hh[flen-len(h):flen], h) return hh } |