aboutsummaryrefslogtreecommitdiff
path: root/pkg/pdata
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-13 01:44:38 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-13 01:44:38 -0400
commit053ce0184c586b27a054c51e5b24132778156d14 (patch)
tree0d117b170a34d81421e90d6ac792020ae5778ab6 /pkg/pdata
parent624ffeb91846b8e6435258ca7483a013cbb36b57 (diff)
downloadAtlas-053ce0184c586b27a054c51e5b24132778156d14.tar.gz
Atlas-053ce0184c586b27a054c51e5b24132778156d14.zip
pkg/{pdata,pdef/pdefgen}: Fix string length check
Diffstat (limited to 'pkg/pdata')
-rw-r--r--pkg/pdata/persistent_player_data_version_231.go2
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 {