mirror of https://gitee.com/openkylin/linux.git
staging: wilc1000: Use strncpy instead of WILC_strncpy
Use strncpy instead of WILC_strncpy that is a custom function Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1799cb6188
commit
85b509f18a
|
@ -1577,7 +1577,7 @@ s32 further_process_response(u8 *resp,
|
|||
case WID_ADR:
|
||||
create_mac_addr(cfg_str, resp + idx);
|
||||
|
||||
WILC_strncpy(pstrWIDresult->ps8WidVal, cfg_str, strlen(cfg_str));
|
||||
strncpy(pstrWIDresult->ps8WidVal, cfg_str, strlen(cfg_str));
|
||||
pstrWIDresult->ps8WidVal[strlen(cfg_str)] = '\0';
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue