X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/009ac7e88aebf869f08716368f5aa7ccac96ca50..7a33fb1c962d1881606fe7b8925afc253bf36706:/package/wificonf/wificonf.c?ds=sidebyside diff --git a/package/wificonf/wificonf.c b/package/wificonf/wificonf.c index 491479fdc..b3acbff69 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; }