From: Chaehyun Lim Date: Mon, 10 Aug 2015 02:33:13 +0000 (+0900) Subject: staging: wilc1000: use strlen instead of WILC_strlen X-Git-Tag: v4.3-rc1~158^2~83 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ff96dfb5b1739c84587be23f113078850a0cef4c;p=karo-tx-linux.git staging: wilc1000: use strlen instead of WILC_strlen Use strlen instead of WILC_strlen that is a custom function. Signed-off-by: Chaehyun Lim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index a88b796fb6c9..c59d9ba298cc 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -1577,8 +1577,8 @@ s32 further_process_response(u8 *resp, case WID_ADR: create_mac_addr(cfg_str, resp + idx); - WILC_strncpy(pstrWIDresult->ps8WidVal, cfg_str, WILC_strlen(cfg_str)); - pstrWIDresult->ps8WidVal[WILC_strlen(cfg_str)] = '\0'; + WILC_strncpy(pstrWIDresult->ps8WidVal, cfg_str, strlen(cfg_str)); + pstrWIDresult->ps8WidVal[strlen(cfg_str)] = '\0'; break; case WID_IP: