From ea778d2482a94075c86b4386cbbe33697ab16108 Mon Sep 17 00:00:00 2001 From: tasn Date: Mon, 8 Aug 2011 14:47:35 +0000 Subject: [PATCH] Evas font: font_load use the correct string. Thanks vtorri for the catch. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@62207 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_font_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/canvas/evas_font_dir.c b/src/lib/canvas/evas_font_dir.c index 52108f6..e414011 100644 --- a/src/lib/canvas/evas_font_dir.c +++ b/src/lib/canvas/evas_font_dir.c @@ -718,7 +718,7 @@ evas_font_load(Evas *evas, Evas_Font_Description *fdesc, const char *source, Eva char *tmp = alloca((end - start) + 1); strncpy(tmp, start, end - start); tmp[end - start] = 0; - FcPatternAddString (p_nm, FC_FAMILY, (FcChar8*) start); + FcPatternAddString (p_nm, FC_FAMILY, (FcChar8*) tmp); } else { -- 2.7.4