Fix the memset size errors
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / bt-service-util.c
index 7a8f805..7878d77 100644 (file)
@@ -38,7 +38,7 @@ bt_plugin_info_t *headed_plugin_info = NULL;
 void _bt_init_request_id(void)
 {
        assigned_id = 0;
-       memset(req_id_used, 0x00, BT_REQUEST_ID_RANGE_MAX);
+       memset(req_id_used, 0x00, sizeof(req_id_used));
 }
 
 int _bt_assign_request_id(void)