return VPNSVC_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- strncpy(tun_s->name, iface_name, VPNSVC_VPN_IFACE_NAME_LEN);
+ g_strlcpy(tun_s->name, iface_name, VPNSVC_VPN_IFACE_NAME_LEN);
return VPNSVC_ERROR_NONE;
}
return VPNSVC_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- strncpy(tun_s->local_ip, local_ip, VPNSVC_IP4_STRING_LEN);
+ g_strlcpy(tun_s->local_ip, local_ip, VPNSVC_IP4_STRING_LEN);
return VPNSVC_ERROR_NONE;
}
return VPNSVC_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- strncpy(tun_s->remote_ip, remote_ip, VPNSVC_IP4_STRING_LEN);
+ g_strlcpy(tun_s->remote_ip, remote_ip, VPNSVC_IP4_STRING_LEN);
return VPNSVC_ERROR_NONE;
}