Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
edje_text.c
Log Message:
raster's snprintf() 'fix' applies here, too
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_text.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- edje_text.c 30 Oct 2004 19:23:39 -0000 1.30
+++ edje_text.c 2 Nov 2004 17:05:37 -0000 1.31
@@ -540,7 +540,9 @@
if ((fnt->entry) && (!strcmp(fnt->entry, font)))
{
- snprintf(font_buf, sizeof(font_buf), "fonts/%s", font);
+ strcpy(font_buf, "fonts/");
+ strncpy(font_buf + 6, font, sizeof(font_buf) - 7);
+ font_buf[sizeof(font_buf) - 1] = 0;
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