aboutsummaryrefslogtreecommitdiffstats
path: root/package/wificonf
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-10-05 13:35:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-10-05 13:35:36 +0000
commit563b250c8849e51b21457285c0561bdbad297c07 (patch)
treed459732d875a9bede529a7bd3953e576f59a2ea2 /package/wificonf
parentd58980a43f3acc7410114b7d1c399ac26331d9f9 (diff)
downloadmaster-187ad058-563b250c8849e51b21457285c0561bdbad297c07.tar.gz
master-187ad058-563b250c8849e51b21457285c0561bdbad297c07.tar.bz2
master-187ad058-563b250c8849e51b21457285c0561bdbad297c07.zip
fix ap_isolate
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2052 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/wificonf')
-rw-r--r--package/wificonf/wificonf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/wificonf/wificonf.c b/package/wificonf/wificonf.c
index 491479fdcb..b3acbff692 100644
--- a/package/wificonf/wificonf.c
+++ b/package/wificonf/wificonf.c
@@ -126,11 +126,11 @@ int bcom_set_val(int skfd, char *ifname, char *var, void *val, int len)
return -1;
strcpy(buf, var);
+ memcpy(&buf[strlen(var) + 1], val, len);
if ((ret = bcom_ioctl(skfd, ifname, WLC_SET_VAR, buf, sizeof(buf))))
return ret;
- memcpy(val, buf, len);
return 0;
}