[nss-clients] Change sprintf to scnprintf
Change-Id: Ie4e9b8c8f88c46319c0ad857a8819ff63708b18d
Signed-off-by: Guojun Jin <gjin@codeaurora.org>
diff --git a/openvpn/src/nss_ovpnmgr_debugfs.c b/openvpn/src/nss_ovpnmgr_debugfs.c
index 37e3668..04e76c2 100644
--- a/openvpn/src/nss_ovpnmgr_debugfs.c
+++ b/openvpn/src/nss_ovpnmgr_debugfs.c
@@ -190,7 +190,7 @@
{
char dentry_name[NSS_OVPNMGR_DEBUGFS_MAX_NAME_SIZE];
- sprintf(dentry_name, "ovpn_app_%s", app->dev->name);
+ scnprintf(dentry_name, sizeof(dentry_name), "ovpn_app_%s", app->dev->name);
/*
* Create debugfs entries for SA, flow and subnet