]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tools: s/strncpy()/strlcpy()/g 2317/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 11 May 2018 13:19:45 +0000 (15:19 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 11 May 2018 13:28:41 +0000 (15:28 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/Makefile.am
src/lxc/tools/lxc_monitor.c

index 923c43cabe9818b18cdad9faa0b3a5c1f591e8b9..ba4993cbd44ac06d41454eb3b8ad58223d325ecd 100644 (file)
@@ -290,6 +290,10 @@ if ENABLE_TOOLS
 if !HAVE_GETSUBOPT
 lxc_copy_SOURCES += tools/include/getsubopt.c tools/include/getsubopt.h
 endif
+
+if !HAVE_STRLCPY
+lxc_monitor_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
+endif
 endif
 
 if ENABLE_COMMANDS
index 050b5519bf9f37acfef57a7b1ec469b58879e660..ded6f1f385bfbb3c33f0b3bcc4bb3e93459d85be 100644 (file)
 #include "arguments.h"
 #include "tool_utils.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)