]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
ulogd: use strncpy instead of memcpy
authorEric Leblond <eric@regit.org>
Tue, 21 Mar 2017 20:49:46 +0000 (21:49 +0100)
committerEric Leblond <eric@regit.org>
Tue, 21 Mar 2017 20:49:46 +0000 (21:49 +0100)
commite0c75c9d20b76ff3d496a776ce43341c752914c3
treea6d2fe554a277c5b64b588e1c12fe5431b2d4400
parent5f142e7ac7ce760a451ff2234136f761d4bcb007
ulogd: use strncpy instead of memcpy

On some architecture, ulogd is not starting due to a
crash in memcpy. This patch switches to strncpy to
avoid the problem.

Reported-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Eric Leblond <eric@regit.org>
src/ulogd.c