OPTEE: fix clang error

security/optee_linuxdriver/core/tee_session.c:57:3: error: 'sprintf' will
always overflow; destination buffer has size 35, but format string expands
to at least 36 [-Werror,-Wfortify-source]

Change-Id: Ie5b2ccfc4fca053b6d88278b1019997ad0dd3ee5
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang 2020-06-09 22:17:32 +08:00
commit 2dbee53a93

View file

@ -48,7 +48,7 @@ static inline bool is_mapped_temp(int flags)
/******************************************************************************/
#define _UUID_STR_SIZE 35
#define _UUID_STR_SIZE 36
static char *_uuid_to_str(const TEEC_UUID *uuid)
{
static char uuid_str[_UUID_STR_SIZE];