Evas font: font_load use the correct string.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 8 Aug 2011 14:47:35 +0000 (14:47 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 8 Aug 2011 14:47:35 +0000 (14:47 +0000)
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

index 52108f6..e414011 100644 (file)
@@ -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
                     {