Skip to content

Commit

Permalink
Fixed CI errors.
Browse files Browse the repository at this point in the history
- Scons 4.5.0 has an oopsie in it, so use 4.4.0 instead.
- On macOS, sprintf is deprecated, so replace with the much cooler,
popular and sociable snprintf.
  • Loading branch information
drwhut committed Mar 11, 2023
1 parent 9e38f06 commit ce14187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/godot-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ runs:
shell: bash
run: |
python -c "import sys; print(sys.version)"
python -m pip install scons
python -m pip install scons==4.4.0
scons --version
2 changes: 1 addition & 1 deletion platform/osx/joypad_osx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ bool JoypadOSX::configure_joypad(IOHIDDeviceRef p_device_ref, joypad *p_joy) {

if (vendor && product_id) {
char uid[128];
sprintf(uid, "%08x%08x%08x%08x", OSSwapHostToBigInt32(3), OSSwapHostToBigInt32(vendor), OSSwapHostToBigInt32(product_id), OSSwapHostToBigInt32(version));
snprintf(uid, 128, "%08x%08x%08x%08x", OSSwapHostToBigInt32(3), OSSwapHostToBigInt32(vendor), OSSwapHostToBigInt32(product_id), OSSwapHostToBigInt32(version));
input->joy_connection_changed(id, true, name, uid);
} else {
//bluetooth device
Expand Down

0 comments on commit ce14187

Please sign in to comment.