update kernel/extended/plimit/los_devicelimit.c.

Signed-off-by: hw_llm <liu.limin@huawei.com>
This commit is contained in:
hw_llm 2024-08-16 01:10:22 +00:00 committed by Gitee
parent 1064329c3a
commit 37d08b1d14
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ UINT32 OsDevLimitWriteDeny(ProcLimitSet *plimit, const CHAR *buf, UINT32 size)
STATIC VOID DevLimitItemSetAccess(CHAR *acc, INT16 access)
{
INT32 index = 0;
(VOID)memset_s(accArray, ACCLEN, 0, ACCLEN);
(VOID)memset_s(acc, ACCLEN, 0, ACCLEN);
if (access & DEVLIMIT_ACC_READ) {
acc[index++] = 'r';
}