app = &numapps[k];
/* Search for a app which has same sender and stop adv is running */
- if (!strncasecmp(app->sender, name, strlen(name)) && app->is_initialized == TRUE) {
+ if (strcasecmp(app->sender, name) == 0 && app->is_initialized == TRUE) {
BT_DBG("numapps[%d] Match found, name: %s", k, name);
/* TODO 2: Need to manage app info as list, not array.