On Tue, Jul 23, 2013 at 08:17:24AM +0100, David Laight wrote:
> On Mon, Jul 22, 2013 at 07:49:09AM +0100, Alexander Nasonov wrote:
> > Taylor R Campbell wrote:
> > > This shouldn't be necessary: snprintf guarantees null termination.
> > > Did you observe a pool name without null termination in pool_init in
> > > the wild?
> > 
> > I misremembered how snprintf works then. I didn't observe it in the wild
> > but some dtrace code uses long vmem names ("dtrace_aggid_%d").
> 
> You might have remembered how the microsoft version of snprintf()
> (doesn't) work!

You are thinking about _snprintf :)

Joerg

Reply via email to