add linksys nvram fixup to S05nvram (fixes #32)
[openwrt.git] / openwrt / package / wificonf / wificonf.c
index 491479f..b3acbff 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);
                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;
 
        
        if ((ret = bcom_ioctl(skfd, ifname, WLC_SET_VAR, buf, sizeof(buf))))
                return ret;
 
-       memcpy(val, buf, len);
        return 0;       
 }
 
        return 0;       
 }
 
This page took 0.023486 seconds and 4 git commands to generate.