]> git.ipfire.org Git - thirdparty/lxc.git/commit
confile: satisfy gcc-8 2313/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 10 May 2018 22:16:41 +0000 (00:16 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 10 May 2018 22:16:41 +0000 (00:16 +0200)
commitd3bdf12cf00e93e3b1df354dd4cc46356baedf24
tree19acabdc0b06a00bdc7ef8f5d55e17ae3fe51798
parentd975008115ba27d8339a1e8753899b144675067d
confile: satisfy gcc-8

Apparently -Werror=stringop-overflow will trigger an error here even though
this is completely valid since we now that we're definitely copying a \0-byte.
Work around this gcc-8 quirk by using memcpy(). This shouldn't trigger the
warning.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile_utils.c