From 10c2e18de5b9d7b0be0e9981a5357f8e61e75475 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 5 Oct 2005 13:35:36 +0000 Subject: [PATCH] fix ap_isolate SVN-Revision: 2052 --- openwrt/package/wificonf/wificonf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index 491479fdcb4..b3acbff6926 100644 --- a/openwrt/package/wificonf/wificonf.c +++ b/openwrt/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; }