From: Jérémie Galarneau Date: Fri, 1 Jun 2018 16:50:40 +0000 (-0400) Subject: Silence strncpy warning emitted by GCC 8 in ini parser X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=9ff0b09b3a6d4469ff42e489abc78352f42ebae8;hp=9ff0b09b3a6d4469ff42e489abc78352f42ebae8 Silence strncpy warning emitted by GCC 8 in ini parser 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 ---