diff options
Diffstat (limited to 'pkg/pdata')
-rw-r--r-- | pkg/pdata/persistent_player_data_version_231.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/pdata/persistent_player_data_version_231.go b/pkg/pdata/persistent_player_data_version_231.go index 6e5d835..cd1898a 100644 --- a/pkg/pdata/persistent_player_data_version_231.go +++ b/pkg/pdata/persistent_player_data_version_231.go @@ -64,7 +64,7 @@ func must(err error) { } func putString(b []byte, x string) error { s := []byte(x) - if len(s) > len(s) { + if len(s) > len(b) { return fmt.Errorf("string length %d too long for field length %d", len(s), len(b)) } for i, c := range s { |