summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorGregory P. Smith <[email protected]>2019-03-03 19:41:41 -0800
committerGregory P. Smith <[email protected]>2019-03-03 19:41:41 -0800
commitfa8141f31fe7726ff00fbbe00b26b297c98f5ca2 (patch)
treed6285c080680a50ce297be757d2e9298854d097c /examples/device
parent55874813f82157b7509729b1a0c66e68f86e2d07 (diff)
Fixes #33: Remove invalid use of strncpy().
This was causing a stringop-truncation compiler warning in gcc 8 when the #defined values being copied from were string literals. `error: 'strncpy' output truncated before terminating nul copying 8 bytes from a string of the same length [-Werror=stringop-truncation]` These fields aren't NUL terminated C strings, they are a fixed width buffer that is supposed to be space (0x20) padded.
Diffstat (limited to 'examples/device')
0 files changed, 0 insertions, 0 deletions