Fix all strncpy() usage: need to set a final \0 character at the end
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 9 Aug 2011 00:12:46 +0000 (20:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 9 Aug 2011 00:12:46 +0000 (20:12 -0400)
commit99497cd03fb27fd2416a88d80292a0cc5647bff2
treea7b230cc1f1655f0e21fc5381a447e433ca6dff6
parent773168b7255d45fd28f018055292e93b7a76482d
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 <mathieu.desnoyers@efficios.com>
liblttkconsumerd/liblttkconsumerd.c
liblttngctl/liblttngctl.c
liblttsessiondcomm/liblttsessiondcomm.c
ltt-sessiond/kernel-ctl.c
ltt-sessiond/main.c
ltt-sessiond/trace.c
ltt-sessiond/ust-ctl.c
lttng/commands/disable_events.c
lttng/commands/enable_events.c
This page took 0.028361 seconds and 5 git commands to generate.