Mongoose uses on-stack buffer. If printed data does not fit in it, memory is malloc-ed then free-d.
On Fri, May 23, 2014 at 10:31 PM, Daniel Payne < daniel.payne.unlimi...@gmail.com> wrote: > I know this thread is old but do you remember the solution for updating > the BUFSIZ > to be larger in mongoose? > > > On Sunday, October 3, 2010 9:02:39 PM UTC-7, frackers wrote: >> >> The value of BUFSIZ is a system macro defined in stdio.h which is very >> dependent on the system!! I've just spent a few hours trying to find a >> truncated mg_printf and tracked it down to the value that my embedded >> system uses in its uClibc library. >> >> Since mg_printf has nothing to do with stdio could we use a different >> value or is there another way of sending more than BUFSIZ bytes of data >> through mongoose that uses dynamically assigned memory perhaps. >> >> Cheers >> >> -- >> Robin Gilks >> >> >> -- > You received this message because you are subscribed to the Google Groups > "mongoose-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mongoose-users+unsubscr...@googlegroups.com. > > To post to this group, send email to mongoose-users@googlegroups.com. > Visit this group at http://groups.google.com/group/mongoose-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-users+unsubscr...@googlegroups.com. To post to this group, send email to mongoose-users@googlegroups.com. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/d/optout.