Date: Thu, 12 Mar 2015 17:02:08 -0400 From: Ryan Stone <rysto32@gmail.com> To: Ian Lepore <ian@freebsd.org> Cc: "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org> Subject: Re: svn commit: r279932 - head/sys/vm Message-ID: <CAFMmRNx%2BB=LtPt2Vx=9dEACiLVQgY9gWu%2B6KmmcYHbP13wX5QA@mail.gmail.com> In-Reply-To: <201503121806.t2CI6VSU034853@svn.freebsd.org> References: <201503121806.t2CI6VSU034853@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 12, 2015 at 2:06 PM, Ian Lepore <ian@freebsd.org> wrote: > Nullterminate strings returned via sysctl. > > PR: 195668 > To quote the manpage: > The *sbuf* family of functions allows one to safely > allocate, construct and release bounded null-terminated > strings in kernel space. IMO the sbuf API is broken if we have to explicitly null-terminate the string ourselves.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNx%2BB=LtPt2Vx=9dEACiLVQgY9gWu%2B6KmmcYHbP13wX5QA>