]> git.ipfire.org Git - thirdparty/iproute2.git/commit
utils: Implement strlcpy() and strlcat()
authorPhil Sutter <phil@nwl.cc>
Fri, 1 Sep 2017 16:52:51 +0000 (18:52 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 1 Sep 2017 19:10:54 +0000 (12:10 -0700)
commit8d15e012a3227d79295cd95582bb6d8a6f0bdc92
treea8d10dcb2ec151603dd11519c9fe436682f8b6cf
parent50f81afd4d24e9fc4a272f74072fc66c2cb2f08f
utils: Implement strlcpy() and strlcat()

By making use of strncpy(), both implementations are really simple so
there is no need to add libbsd as additional dependency.

Signed-off-by: Phil Sutter <phil@nwl.cc>
include/utils.h
lib/utils.c