more efficient :) (snprintf is a bit of a sledgehammer - if we can do it
authorCarsten Haitzler <raster@rasterman.com>
Tue, 2 Nov 2004 00:05:27 +0000 (00:05 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Tue, 2 Nov 2004 00:05:27 +0000 (00:05 +0000)
simply.. why not? :) )
:)

SVN revision: 12119

legacy/edje/src/lib/edje_calc.c

index 1002145..0f499bc 100644 (file)
@@ -511,7 +511,9 @@ _edje_part_recalc_single(Edje *ed,
 
                  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;