Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/kern
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
Home |
Main Index |
Thread Index |
Old Index