This reverts commit
2ec47d5149e73db97f7877d06d67cb11421097bb.
First, I forgot to actually replace strncpy() with strlcpy(). Second, we don't
want to \0-terminate since this is an abstract unix socket and this is not
required. Instead, let's simply use memcpy() which is more correct and also
silences gcc-8.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
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
#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)