Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        edje_calc.c 


Log Message:
snprintf goooooood :)
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_calc.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -3 -r1.52 -r1.53
--- edje_calc.c 30 Oct 2004 14:28:40 -0000      1.52
+++ edje_calc.c 1 Nov 2004 19:14:23 -0000       1.53
@@ -511,8 +511,7 @@
 
                  if ((fnt->entry) && (!strcmp(fnt->entry, font)))
                    {
-                      strcpy(buf, "fonts/");
-                      strcat(buf, font);
+                      snprintf(buf, sizeof(buf), "fonts/%s", font);
                       font = buf;
                       inlined_font = 1;
                       break;




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to