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! David -- David Laight: da...@l8s.co.uk