… | … | ||
---|---|---|---|
1675 | FcPatternDestroy (match); | 1675 | FcPatternDestroy (match); |
1676 | 1676 | ||
1677 | if (find_font (font) < 0) | 1677 | if (find_font (font) < 0) |
1678 | { | 1678 | { |
1679 | char fontname[4096]; | 1679 | char fontname[4096]; |
1680 | sprintf (fontname, "xft:%-.4090s", font); | 1680 | snprintf (fontname, sizeof (fontname), "xft:%s", font); |
1681 | 1681 | ||
1682 | fonts.push_back (new_font (fontname, CS_UNICODE)); | 1682 | fonts.push_back (new_font (fontname, CS_UNICODE)); |
1683 | } | 1683 | } |
1684 | 1684 | ||
1685 | free (font); | 1685 | free (font); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |