mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
43 KiB
43 KiB