Skip to content

Conversation

Skyaero42
Copy link

@Skyaero42 Skyaero42 commented Oct 7, 2025

This change replaces wstrncpy with wstrlcpy for robustness

TODO

  • Replicate in Generals

@Skyaero42 Skyaero42 added this to the Code foundation build up milestone Oct 7, 2025
@Skyaero42 Skyaero42 self-assigned this Oct 7, 2025
@Skyaero42 Skyaero42 added the Stability Concerns stability of the runtime label Oct 7, 2025
Copy link

@Mauller Mauller left a 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

@xezon xezon added Minor Severity: Minor < Major < Critical < Blocker Refactor Edits the code with insignificant behavior changes, is never user facing labels Oct 12, 2025
@xezon xezon changed the title fix: replace wstrncpy with wstrlcpy for robustness fix: Replace wstrncpy with wstrlcpy for robustness Oct 12, 2025
Copy link

@xezon xezon left a 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.

@xezon xezon changed the title fix: Replace wstrncpy with wstrlcpy for robustness fix: Replace wcsncpy with wcslcpy for robustness Oct 15, 2025
@Skyaero42
Copy link
Author

Changed to ARRAY_SIZE()

@xezon
Copy link

xezon commented Oct 15, 2025

Needs replicating.

@Skyaero42
Copy link
Author

Replicated in Generals

@xezon xezon merged commit 3b78b63 into TheSuperHackers:main Oct 16, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Minor Severity: Minor < Major < Critical < Blocker Refactor Edits the code with insignificant behavior changes, is never user facing Stability Concerns stability of the runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants