fix ap_isolate
authorFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2005 13:35:36 +0000 (13:35 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2005 13:35:36 +0000 (13:35 +0000)
SVN-Revision: 2052

openwrt/package/wificonf/wificonf.c

index 491479fdcb4cdac97b908d5a781c058df4bfaeaf..b3acbff6926884e5391b13594cad26326406b7a7 100644 (file)
@@ -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;       
 }