tools: s/strncpy()/strlcpy()/g

parent 8baf3570
...@@ -289,6 +289,10 @@ if !HAVE_GETSUBOPT ...@@ -289,6 +289,10 @@ if !HAVE_GETSUBOPT
lxc_copy_SOURCES += ../include/getsubopt.c ../include/getsubopt.h lxc_copy_SOURCES += ../include/getsubopt.c ../include/getsubopt.h
endif endif
if !HAVE_STRLCPY
lxc_monitor_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
endif
if HAVE_STATIC_LIBCAP if HAVE_STATIC_LIBCAP
sbin_PROGRAMS += init.lxc.static sbin_PROGRAMS += init.lxc.static
......
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
#include "arguments.h" #include "arguments.h"
#include "lxccontainer.h" #include "lxccontainer.h"
#ifndef HAVE_STRLCPY
#include "include/strlcpy.h"
#endif
static bool quit_monitord; static bool quit_monitord;
static int my_parser(struct lxc_arguments* args, int c, char* arg) static int my_parser(struct lxc_arguments* args, int c, char* arg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment