about summary refs log tree commit diff
path: root/src/ppp/nm-pppd-plugin.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-10-30 10:26:10 +0100
committerMichael Biebl <biebl@debian.org>2018-10-30 10:26:10 +0100
commitbd8ab7e82b1ae4e8899b30a59a7b35ba009344ea (patch)
tree83691f38efeef4d5dd7a85c0893fa8a54274728f /src/ppp/nm-pppd-plugin.c
parentc15221a34c0af3a5b2c03dfe80c2a9841acefb03 (diff)
parent3cdef184c37fa2c152f8542c6107f8a623735a1c (diff)
Merge branch 'master' into stretch-backports
Diffstat (limited to 'src/ppp/nm-pppd-plugin.c')
-rw-r--r--src/ppp/nm-pppd-plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ppp/nm-pppd-plugin.c b/src/ppp/nm-pppd-plugin.c
index 989f7433..09196340 100644
--- a/src/ppp/nm-pppd-plugin.c
+++ b/src/ppp/nm-pppd-plugin.c
@@ -147,7 +147,7 @@ nm_phasechange (void *data, int arg)
 		if (   if_indextoname (index, new_name)
 		    && !nm_streq0 (ifname, new_name)) {
 			g_message ("nm-ppp-plugin: interface name changed from '%s' to '%s'", ifname, new_name);
-			strncpy (ifname, new_name, IF_NAMESIZE);
+			g_strlcpy (ifname, new_name, IF_NAMESIZE);
 		}
 	}
 }