Fix klocwork issues

BZ: 185330

Use snprintf instead of sprintf while assemble strings.
Fixed a possible array index out of bounds issue.

Change-Id: Ic5d25f70f88e81209aecfe16fce9dca7af3b1bd0
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
1 file changed