Fix the svace issue 39/106939/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 26 Dec 2016 01:08:54 +0000 (10:08 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 26 Dec 2016 01:09:26 +0000 (10:09 +0900)
Change-Id: I1fb7464f2e3fa84ced612d62da7a13c568afc786
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service/bt-service-pbap.c

index d69b66a..335f3de 100644 (file)
@@ -998,7 +998,7 @@ int __bt_pbap_call_get_vcard(GDBusProxy *proxy, bt_pbap_data_t *pbap_data)
 //
 //****************************
 
-       sprintf(vcard, "%d.vcf", app_param->index);
+       snprintf(vcard, 20, "%d.vcf", app_param->index);
        BT_DBG("Handle: %s", vcard);
        vcard_handle = g_strdup(vcard);
        BT_DBG("vcard_handle: %s", vcard_handle);