projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef017cb
)
more efficient :) (snprintf is a bit of a sledgehammer - if we can do it
author
Carsten Haitzler
<raster@rasterman.com>
Tue, 2 Nov 2004 00:05:27 +0000
(
00:05
+0000)
committer
Carsten 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
patch
|
blob
|
history
diff --git
a/legacy/edje/src/lib/edje_calc.c
b/legacy/edje/src/lib/edje_calc.c
index
1002145
..
0f499bc
100644
(file)
--- a/
legacy/edje/src/lib/edje_calc.c
+++ b/
legacy/edje/src/lib/edje_calc.c
@@
-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;