qcacmn: Fix inappropriate use of qdf_str_lcopy()
A call into qdf_str_lcopy() is passing qdf_str_len(src) as the destination buffer size parameter. Instead, pass the actual size of the destination buffer. Change-Id: I62ff473d9d45cfa53c5fc3df27743690586381c0 CRs-Fixed: 2196114
This commit is contained in:
@@ -2366,7 +2366,7 @@ int qdf_print_ctrl_register(const struct category_info *cinfo,
|
|||||||
|
|
||||||
if (pctrl_name) {
|
if (pctrl_name) {
|
||||||
qdf_str_lcopy(print_ctrl_obj[idx].name, pctrl_name,
|
qdf_str_lcopy(print_ctrl_obj[idx].name, pctrl_name,
|
||||||
qdf_str_len(pctrl_name) + 1);
|
sizeof(print_ctrl_obj[idx].name));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (custom_print_handler)
|
if (custom_print_handler)
|
||||||
|
Reference in New Issue
Block a user