Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        edje_calc.c 


Log Message:


more efficient :) (snprintf is a bit of a sledgehammer - if we can do it
simply.. why not? :) )
:)

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_calc.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- edje_calc.c 1 Nov 2004 19:14:23 -0000       1.53
+++ edje_calc.c 2 Nov 2004 00:05:27 -0000       1.54
@@ -511,7 +511,9 @@
 
                  if ((fnt->entry) && (!strcmp(fnt->entry, font)))
                    {
-                      snprintf(buf, sizeof(buf), "fonts/%s", font);
+                      strcpy(buf, "fonts/");
+                      strncpy(buf + 6, font, sizeof(buf) - 7);
+                      buf[sizeof(buf) - 1] = 0;
                       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