Skip to content

Commit 3aaec4c

Browse files
authored
matchinfo: fix bad hex conversion in MatchInfoDecryptionKey() (#339)
fixes #338
1 parent 9fbeeb2 commit 3aaec4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/demoinfocs/matchinfo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package demoinfocs
22

33
import (
4-
"strconv"
4+
"fmt"
55
"strings"
66

77
"github.com/gogo/protobuf/proto"
@@ -21,7 +21,7 @@ func MatchInfoDecryptionKey(b []byte) ([]byte, error) {
2121
return nil, errors.Wrap(err, "failed to unmarshal MatchInfo message")
2222
}
2323

24-
k := []byte(strings.ToUpper(strconv.FormatUint(m.Watchablematchinfo.ClDecryptdataKeyPub, 16)))
24+
k := []byte(strings.ToUpper(fmt.Sprintf("%016x", m.Watchablematchinfo.ClDecryptdataKeyPub)))
2525

2626
return k, nil
2727
}

0 commit comments

Comments
 (0)