Skip to content

applemidi: fix stringpop-truncation warning #946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025

Conversation

soyersoyer
Copy link
Contributor

net/applemidi.cpp: In member function 'bool CAppleMIDIParticipant::SendAcceptInvitationPacket(CSocket*, CIPAddress*, u16)':
net/applemidi.cpp:812:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-truncation]
strncpy(AcceptPacket.Name, m_pSessionName, sizeof(AcceptPacket.Name));

net/applemidi.cpp: In member function 'bool CAppleMIDIParticipant::SendAcceptInvitationPacket(CSocket*, CIPAddress*, u16)':
net/applemidi.cpp:812:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-truncation]
strncpy(AcceptPacket.Name, m_pSessionName, sizeof(AcceptPacket.Name));
Copy link

github-actions bot commented Jul 7, 2025

Build for testing:
MiniDexed_1197_2025-07-07-76aa66b_32bit
MiniDexed_1197_2025-07-07-76aa66b_64bit
Use at your own risk.

@probonopd probonopd merged commit e9a8460 into probonopd:main Jul 7, 2025
3 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.

2 participants