From 01054aefca6c58180c659238de8b6ead96494765 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sun, 26 Nov 2017 16:24:18 +0000 Subject: [PATCH] freebsd build: fix second struct iwreq member too --- src/lwe/iwlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lwe/iwlib.h b/src/lwe/iwlib.h index 05a5fdc..5cf5740 100755 --- a/src/lwe/iwlib.h +++ b/src/lwe/iwlib.h @@ -521,7 +521,7 @@ iw_get_ext(int skfd, /* Socket to the kernel */ struct iwreq * pwrq) /* Fixed part of the request */ { /* Set device name */ - strncpy(pwrq->ifr_name, ifname, IFNAMSIZ); + strncpy(pwrq->ifr_ifrn.ifrn_name, ifname, IFNAMSIZ); /* Do the request */ return(ioctl(skfd, request, pwrq)); }