[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: auto-apt-0.3.22 hurd patch (PATH_MAX)



2012/1/30 Richard Braun <rbraun@sceen.net>:
> That's what realloc() does. Well, "resize the buffer if possible" would
> be more accurate.
^_^'

What I meant was: I do a free()/malloc() each time someone asks for the buffer.
It would be more efficient to check if the old buffer is big enough to
be re-used or if it needs to be increased using realloc() and then
re-used.

Tanguy


Reply to: