Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gdft: change strncpy usage to memcpy
All the uses of strncpy in here are based on strlen of the input, so there's no need to run through an str-based func again. Switch to a straight memcpy. Plus this avoids static checkers that blindly choke on strncpy. The code was already adding a trailing NUL byte, so that isn't problematic either.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters