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:
parent
c10f1e9c02
commit
2dbee53a93
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue