2012/3/28 Enlightenment SVN <no-re...@enlightenment.org>:
> Log:
> put env bug so waiting to happen - env vars wont be set. no crash
>  though.
>
>
>
> Author:       raster
> Date:         2012-03-28 00:26:22 -0700 (Wed, 28 Mar 2012)
> New Revision: 69696
> Trac:         http://trac.enlightenment.org/e/changeset/69696
>
> Modified:
>  trunk/e/src/bin/e_start_main.c
>
> Modified: trunk/e/src/bin/e_start_main.c
> ===================================================================
> --- trunk/e/src/bin/e_start_main.c      2012-03-28 07:17:46 UTC (rev 69695)
> +++ trunk/e/src/bin/e_start_main.c      2012-03-28 07:26:22 UTC (rev 69696)
> @@ -27,9 +27,10 @@
>        setenv(var, val, 1);
>  #else
>        char *buf;
> +        size_t size = strlen(var) + 1 + strlen(val) + 1;
>
> -       buf = alloca(strlen(var) + 1 + strlen(val) + 1);
> -       snprintf(buf, sizeof(buf), "%s=%s", var, val);
> +       buf = alloca(size;
missing right paranthesis here?
> +       snprintf(buf, size, "%s=%s", var, val);
>        if (getenv(var)) putenv(buf);
>        else putenv(strdup(buf));
>  #endif
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn



-- 
Leif

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to