Skip to content

Concurrency: silence warning on Windows #81477

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

compnerd
Copy link
Member

Prefer strncpy_s over strncpy which triggers a warning. This function ensures that the copied string is null-terminated if the string fits or simply returns an empty string (\0) if the string does not fit. Prefer to use _TRUNCATE to copy as much of the name as fits and ensure that it is null-terminated.

Prefer `strncpy_s` over `strncpy` which triggers a warning. This
function ensures that the copied string is null-terminated if the string
fits or simply returns an empty string (`\0`) if the string does not
fit. Prefer to use `_TRUNCATE` to copy as much of the name as fits and
ensure that it is null-terminated.
@compnerd compnerd requested a review from ktoso as a code owner May 13, 2025 16:48
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd compnerd requested a review from al45tair May 13, 2025 16:49
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.

1 participant