summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2018-06-22 00:09:50 -0400
committerMike Frysinger <vapier@gentoo.org>2018-06-22 00:09:50 -0400
commit748578ff3fa4b636513373f0613e158b930f3ed4 (patch)
tree166fce8a4f8565be78be791ffd3c9d90a94775b4 /examples
parente9bf9ddf1d612227ef04a363ed1e0ad5e960b857 (diff)
downloadlibgd-748578ff3fa4b636513373f0613e158b930f3ed4.tar.gz
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.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions