Date: Fri, 25 Oct 2013 15:08:46 +0200 From: Joerg Sonnenberger <joerg@britannica.bec.de> To: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: warning spew from cddl libnvpair.c Message-ID: <20131025130846.GA2388@britannica.bec.de> In-Reply-To: <20131025122643.GC12556@insomnia.benzedrine.cx> References: <1382672957.18382.11.camel@localhost> <20131025113946.GA15905@britannica.bec.de> <20131025122643.GC12556@insomnia.benzedrine.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 25, 2013 at 02:26:43PM +0200, Daniel Hartmeier wrote: > How is that valid? Different question. > If nvprt_btwnarrfmt contains %, how would > > (void) fprintf(fp, pctl->nvprt_btwnarrfmt); \ > > not crash? Correct. The version I see in NetBSD uses real format strings and arguments of fixed types, so it still has this kind of problems, but it is more clear that it is likely correct. Joerg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131025130846.GA2388>