-
Notifications
You must be signed in to change notification settings - Fork 105
fix: Replace wcsncpy with wcslcpy for robustness #1676
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is at least 1 error.
Might want to think about using ARRAY_SIZE more for robustness, maybe in a follow up change if better suited.
GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPIhandlers.cpp
Outdated
Show resolved
Hide resolved
fee7656
to
50ad6c4
Compare
50ad6c4
to
28a7e0b
Compare
Changed to ARRAY_SIZE() |
Needs replicating. |
Replicated in Generals |
This change replaces wstrncpy with wstrlcpy for robustness
TODO