On Thu, May 04, 2017 at 06:42:58AM -0700, Bart Van Assche wrote:
> On 05/04/17 00:18, Magnus Fromreide wrote:
> > I just noticed that your alternate version of vasnprintf calls realloc on
> > the *strp argument but when I look at my system's version it seems to call
> > malloc and just assign the result and given that one could imagine people
> > calling it using an uninitilaized pointer then that behaviour sounds more
> > correct.
> 
> Hello Magnus,
> 
> It was not my intention to make the behavior of vasprintf() different of the
> function with the same name in the C library. I will make sure that the
> behavior of both implementations matches.

:-)

> BTW, vasprintf() was implemented without me having had a look at the glibc
> implementation to avoid copyright issues.

I was expecting as much but now I looked and so I won't say anything about
the code, only about the funtionality and that should mae us clean.

Another thing is that I think this should be mentioned in the man page for
(v)asnprintf.

/MF

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to