Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ICU-22117 Replace uprv_strncpy() by uprv_memcpy()
This fixes a warning on gcc 9.4.0, which is triggered because the third argument to strncpy() depends on the length of the second argument (but should actually indicate the buffer size). Replacing by memcpy() seems harmless because a null terminator is appended further below, and the buffer is sized to be "large enough" elsewhere. See duckdb/duckdb#4391 for details. Fixing the warning is important for us, because the checks in the duckdb repository treat all warnings as errors.
- Loading branch information