mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user