Silence strncpy warning emitted by GCC 8 in ini parser
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 1 Jun 2018 16:50:40 +0000 (12:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 1 Jun 2018 17:02:12 +0000 (13:02 -0400)
While copying 'dst len' bytes in strncpy is normally risky
as the dst may not be NULL-terminated, this function ensures
that the last byte of 'dst' is NULL.

Therefore, this change is mostly made to silence GCC.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

No differences found
This page took 0.026601 seconds and 5 git commands to generate.