Merge "qseecom: use strnlen in qseecom_start_app"
This commit is contained in:
commit
c7572d54ad
1 changed files with 2 additions and 2 deletions
|
@ -4379,9 +4379,9 @@ int qseecom_start_app(struct qseecom_handle **handle,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(app_name) >= MAX_APP_NAME_SIZE) {
|
if (strnlen(app_name, MAX_APP_NAME_SIZE) == MAX_APP_NAME_SIZE) {
|
||||||
pr_err("The app_name (%s) with length %zu is not valid\n",
|
pr_err("The app_name (%s) with length %zu is not valid\n",
|
||||||
app_name, strlen(app_name));
|
app_name, strnlen(app_name, MAX_APP_NAME_SIZE));
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue