On Mon, 2009-05-11 at 12:02 -0300, Gustavo Sverzut Barbieri wrote: > On Sun, May 10, 2009 at 6:31 AM, Enlightenment SVN > <[email protected]> wrote: > > Log: > > patch from ticket #301 > > Author: urandom > > Date: 2009-05-10 02:31:01 -0700 (Sun, 10 May 2009) > > New Revision: 40578 > > > > Modified: > > trunk/E-MODULES-EXTRA/forecasts/e_mod_main.c > > > > Modified: trunk/E-MODULES-EXTRA/forecasts/e_mod_main.c > > =================================================================== > > --- trunk/E-MODULES-EXTRA/forecasts/e_mod_main.c 2009-05-10 08:30:47 > > UTC (rev 40577) > > +++ trunk/E-MODULES-EXTRA/forecasts/e_mod_main.c 2009-05-10 09:31:01 > > UTC (rev 40578) > > @@ -645,6 +645,7 @@ > > { > > Instance *inst; > > Ecore_Con_Event_Server_Data *ev; > > + void *tmp; > > > > inst = data; > > ev = event; > > @@ -652,9 +653,14 @@ > > if ((!inst->server) || (inst->server != ev->server)) > > return 1; > > while ((inst->cursize + ev->size) >= inst->bufsize) > > + inst->bufsize += 4096; > > 1 - come on, loop to calculate? do a multiply/divide instead ;-) hey, I didn't come up with that. I practically stole that part from the 'weather' module :). And you know what they say, if it works, don't fix it :)
> 2 - do not change bufsize, use a temp variable instead and just assign > if realloc works. > > ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
