From: Mathieu Desnoyers Date: Tue, 9 Aug 2011 00:12:46 +0000 (-0400) Subject: Fix all strncpy() usage: need to set a final \0 character at the end X-Git-Tag: v2.0-pre10~6 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=99497cd03fb27fd2416a88d80292a0cc5647bff2;hp=99497cd03fb27fd2416a88d80292a0cc5647bff2 Fix all strncpy() usage: need to set a final \0 character at the end strncpy does not necessarily set the last character to the null terminating character. It must be done explicitly in case of overflow. Signed-off-by: Mathieu Desnoyers ---