Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Use memcpy instead of strncpy"
This reverts commit 9294cbf. memcpy can lead to a buffer overflow if name is shorter than 8 bytes. The compiler warning aside, strncpy seems like exactly the right tool for the job as we want at most 8 bytes and don't care for any trailing \0, but are OK with zero padding at the end.
- Loading branch information