Fix potential buffer overflow error CID: 40674
Fix potential buffer overflow error CID: 40674

Change backported from security-server repository.

Change-Id: Ifcbd8ebe4ddfa4c04dd000639cab2c60648c3943
Signed-off-by: Rafal Krypa <875f2afab983118b44e45bad4cf04b04767e9f4a@samsung.com>

Samsung/security-manager,Samsung/security-manager,Samsung/security-manager