From: Christian Brauner Date: Fri, 11 May 2018 13:19:45 +0000 (+0200) Subject: tools: s/strncpy()/strlcpy()/g X-Git-Tag: lxc-2.0.10~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cabae9d14e66b86598ada809d196ddcde0e8592e;p=thirdparty%2Flxc.git tools: s/strncpy()/strlcpy()/g Signed-off-by: Christian Brauner --- diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index 1b10d6f63..69f9a5eaa 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -289,6 +289,10 @@ if !HAVE_GETSUBOPT lxc_copy_SOURCES += ../include/getsubopt.c ../include/getsubopt.h endif +if !HAVE_STRLCPY +lxc_monitor_SOURCES += ../include/strlcpy.c ../include/strlcpy.h +endif + if HAVE_STATIC_LIBCAP sbin_PROGRAMS += init.lxc.static diff --git a/src/lxc/tools/lxc_monitor.c b/src/lxc/tools/lxc_monitor.c index 683df6461..3b629472c 100644 --- a/src/lxc/tools/lxc_monitor.c +++ b/src/lxc/tools/lxc_monitor.c @@ -37,6 +37,10 @@ #include "arguments.h" #include "lxccontainer.h" +#ifndef HAVE_STRLCPY +#include "include/strlcpy.h" +#endif + static bool quit_monitord; static int my_parser(struct lxc_arguments* args, int c, char* arg)