diff options
| author | rillig <rillig@NetBSD.org> | 2020-07-31 16:26:16 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2020-07-31 16:26:16 +0000 |
| commit | ddad9c27cc1f307749459730824416530c96bb56 (patch) | |
| tree | 9b8cbfce8e684cba2bd47dbee27ade77303e64d5 /sys/dev/raidframe | |
| parent | b005886e2f105f62ea119c3c9d50d616520f5956 (diff) | |
make(1): use snprintf instead of strncpy
strncpy is not suited for string processing, despite its name.
Even though the previous code used the correct code pattern for strncpy,
it still wasted cycles since strncpy always fills the whole target
buffer. That's not needed.
Diffstat (limited to 'sys/dev/raidframe')
0 files changed, 0 insertions, 0 deletions
