Skip to content

Conversation

@sarahcrowle
Copy link

@sarahcrowle sarahcrowle commented Jan 10, 2026

On certain systems (notably ARM64?) char might not necessarily be signed. This causes issues when ps2-packer tries to read arguments as it can't check for EOF properly.

This PR changes the data type of the variable used to store the value returned from getopt to an int, which fixes argument parsing on these systems.

Fixes #43

@uyjulian
Copy link
Member

LGTM thanks!

@uyjulian uyjulian merged commit 9afec04 into ps2dev:master Jan 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arm64 (Raspberry Pi 5) error: Unknown option ?

2 participants