]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: use strlen instead of WILC_strlen
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 10 Aug 2015 02:33:13 +0000 (11:33 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 01:39:52 +0000 (18:39 -0700)
Use strlen instead of WILC_strlen that is a custom function.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/coreconfigurator.c

index a88b796fb6c90cc09fff117a23805273f22c5b43..c59d9ba298cc9d8578d74eb3a4c53379ac799e36 100644 (file)
@@ -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: