On Fri, Dec 3, 2010 at 4:21 PM, Enlightenment SVN
<no-re...@enlightenment.org> wrote:
> Log:
>        * edje: SPANK ! SPANK ! SPANK !
>
>        fprintf should always specify a format.
>
>
> Author:       cedric
> Date:         2010-12-03 10:21:56 -0800 (Fri, 03 Dec 2010)
> New Revision: 55213
> Trac:         http://trac.enlightenment.org/e/changeset/55213
>
> Modified:
>  trunk/edje/src/lib/edje_edit.c
>
> Modified: trunk/edje/src/lib/edje_edit.c
> ===================================================================
> --- trunk/edje/src/lib/edje_edit.c      2010-12-03 18:12:19 UTC (rev 55212)
> +++ trunk/edje/src/lib/edje_edit.c      2010-12-03 18:21:56 UTC (rev 55213)
> @@ -6357,7 +6357,7 @@
>              success = EINA_FALSE;
>           }
>         else
> -          fprintf(f, eed->embryo_processed);
> +          fprintf(f, "%s", eed->embryo_processed);
>      }
>
>    it = eina_hash_iterator_data_new(eed->program_scripts);
> @@ -6384,7 +6384,7 @@
>              continue;
>           }
>         fprintf(f, "public _p%i(sig[], src[]) {\n", ps->id);
> -        fprintf(f, ps->processed);
> +        fprintf(f, "%s", ps->processed);

although GCC is smart and it shouldn't matter much, you should
actually call fputs() :-) (gcc should do it automatically)

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

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to