summaryrefslogtreecommitdiffstats
path: root/lib/route
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-04-15 14:28:54 (GMT)
committerThomas Haller <thaller@redhat.com>2020-04-15 16:22:58 (GMT)
commite97b990cf802ecc39e9ed5e1bae5e7b55c499c17 (patch)
tree6b72014b7324ce02e771a9c9808364b15e1d2c9b /lib/route
parent5ffbc6f17b693499331c7a3d9c8ad0c314271c91 (diff)
downloadlibnl-e97b990cf802ecc39e9ed5e1bae5e7b55c499c17.zip
libnl-e97b990cf802ecc39e9ed5e1bae5e7b55c499c17.tar.gz
libnl-e97b990cf802ecc39e9ed5e1bae5e7b55c499c17.tar.bz2
lib: rename _nl_strncpy() to _nl_strncpy_assert()
It makes it clearer how this function differs from _nl_strncpy_trunc().
Diffstat (limited to 'lib/route')
-rw-r--r--lib/route/tc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/tc.c b/lib/route/tc.c
index 35303f5..986a167 100644
--- a/lib/route/tc.c
+++ b/lib/route/tc.c
@@ -536,7 +536,7 @@ int rtnl_tc_set_kind(struct rtnl_tc *tc, const char *kind)
|| strlen (kind) >= sizeof (tc->tc_kind))
return -NLE_INVAL;
- _nl_strncpy(tc->tc_kind, kind, sizeof(tc->tc_kind));
+ _nl_strncpy_assert(tc->tc_kind, kind, sizeof(tc->tc_kind));
tc->ce_mask |= TCA_ATTR_KIND;