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:
Dustin Brown
2018-02-26 12:28:31 -08:00
committato da snandini
parent 249ddc70eb
commit 26e61b5928

Vedi File

@@ -2366,7 +2366,7 @@ int qdf_print_ctrl_register(const struct category_info *cinfo,
if (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)