Change-Id: I1e3acab009d0b5c2b25be5a2f4d0aecf9474094e
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
gpointer _wifi_copy_vsie_list(gconstpointer data, gpointer user_data)
{
- return g_strdup(data);
+ unsigned char *str = (unsigned char *)data;
+ unsigned char *vsie;
+ vsie = g_try_malloc0(str[1]+2);
+
+ if (vsie)
+ memcpy(vsie, str, str[1]+2);
+ else
+ WIFI_LOG(WIFI_ERROR, "Failed to allocate memory.");
+
+ return vsie;
}
gpointer _wifi_copy_bssid_list(gconstpointer data, gpointer user_data)