Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct use of strncpy function (#1247)
The last argument should be the max size of the destination, not the source buffer. A null byte is added to the end of the destination buffer since strncpy only adds one if it does not truncate the source. This fixes the -Wstringop-overflow warning on GCC.
- Loading branch information