nm-l2tp / NetworkManager-l2tp

L2TP and L2TP/IPsec support for NetworkManager
GNU General Public License v2.0
486 stars 84 forks source link

service: ensure the ipsec path is NUL terminated #94

Closed lkundrak closed 5 years ago

lkundrak commented 5 years ago

GCC 8.2 complains:

src/nm-l2tp-service.c: In function ‘real_connect’: src/nm-l2tp-service.c:1370:3: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] strncpy (priv->ipsec_binary_path, value, sizeof(priv->ipsec_binary_path)); ^~~~~~~~~~~~~~~~~