On Sun, May 10, 2009 at 6:31 AM, Enlightenment SVN
<no-re...@enlightenment.org> 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 ;-)
2 - do not change bufsize, use a temp variable instead and just assign
if realloc works.


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to