BZ: 23929
Change-Id: I459dd5f6ddb33bc7fa14c195187641af36164f3f
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/36874
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
sprintf(str, "Unknown agent index (%d)\n",
log.fields.agent_idx);
else
- sprintf(str, "%s\n",
+ snprintf(str, sizeof(str)-1, "%s\n",
Agent_Names[log.fields.agent_idx]);
- sprintf(temp, "Agent Index: %s\n", str);
+ snprintf(temp, sizeof(temp)-1, "Agent Index:%s\n", str);
strcat(buf, temp);
sprintf(temp, "Cmd initiator ID: %d\n",