]> git.proxmox.com Git - mirror_lxc.git/commit
Revert "tools: s/strncpy()/strlcpy()/g"
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 11 May 2018 13:56:58 +0000 (15:56 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 11 May 2018 13:56:58 +0000 (15:56 +0200)
commit50c6bb6b74d0414bc1b3bd5395b2bad6009a017d
tree27ef433276d568eef59e771ce0617664f6e0a551
parentb717d3fab12de0a0f8634d38deaf37078a8a66de
Revert "tools: s/strncpy()/strlcpy()/g"

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>
src/lxc/Makefile.am
src/lxc/tools/lxc_monitor.c