Re: [OpenWrt-Devel] fixed a ubusd.c segment fault problem

2015-06-18 Thread Rafał Miłecki
oOn 18 June 2015 at 13:18, yangchao wrote: > hi gays : > this is a patch for ubusd.c Please resend as a proper patch, using text/plain (not text/html), with a proper subject and commit message. See https://dev.openwrt.org/wiki/SubmittingPatches for details. -- Rafał __

[OpenWrt-Devel] fixed a ubusd.c segment fault problem

2015-06-18 Thread yangchao
hi gays : this is a patch for ubusd.c diff --git a/ubusd.c b/ubusd.c index 8903105..ecf5bea 100644 --- a/ubusd.c +++ b/ubusd.c @@ -241,7 +241,7 @@ retry: fd_buf.fd = -1; - iov.iov_base = &cl->hdrbuf + offset; + iov.iov_base = (char *)&cl->hdrbuf