Skip to content

Commit

Permalink
Fix: Swap from strconv.Atoi to strconv.ParseInt(parts[1], 10, 64) for…
Browse files Browse the repository at this point in the history
… using 64-bit values on 32-bit systems
  • Loading branch information
Codycody31 committed Jun 20, 2024
1 parent 71c7406 commit 4148651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func ParseFileInfos(message string, fileInfos *FileInfos) error {
return err
}

size, err := strconv.Atoi(parts[1])
size, err := strconv.ParseInt(parts[1], 10, 64)
if err != nil {
return err
}
Expand Down

0 comments on commit 4148651

Please sign in to comment.