[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-coders
Subject:    Re: vasnprintf
From:       Magnus Fromreide <magfr () lysator ! liu ! se>
Date:       2017-05-07 3:44:23
Message-ID: 20170507034423.GA7594 () noemi
[Download RAW message or body]

On Fri, May 05, 2017 at 05:30:14PM -0700, Bart Van Assche wrote:
> On 05/04/17 14:58, Magnus Fromreide wrote:
> > 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.
> >>
> >> 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.
> >
> > :-)
> 
> Hello Magnus,
> 
> This should have been fixed. Can you have a look at what I checked in?

Yes, this looks good, thanks.

/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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic