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. Bart. ------------------------------------------------------------------------------ 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