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-09-15 01:05:35 +0200
committerMichael Biebl <biebl@debian.org>2018-09-15 01:05:35 +0200
commitd1148fc0e24d30260606f292db3bb21ba9a6adc5 (patch)
tree5f2251e1da11451b72c9dedbe629e3a90ec5bf13 /src/ppp/nm-pppd-plugin.c
parentffe03e75298bcd15849e314c8233cb9b696d59a3 (diff)
parentc240974325c552cad177c457d6ff04e381fd77a3 (diff)
Update upstream source from tag 'upstream/1.14.0'
Update to upstream version '1.14.0'
with Debian dir a85bbd526d758f044876cc0acaa7be950ec06fae
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);
 		}
 	}
 }