Merge branch 'font-count-fix' into xft-port

* font-count-fix:
  Check force_count to be lower than MAX_FONT_COUNT
This commit is contained in:
krypt-n 2015-06-02 09:32:26 +02:00
commit 61ffd9e35e

View File

@ -716,6 +716,11 @@ parse (char *text)
void
font_load (const char *pattern)
{
if (font_count >= MAX_FONT_COUNT) {
fprintf(stderr, "Max font count reached. Could not load font \"%s\"\n", pattern);
return;
}
xcb_query_font_cookie_t queryreq;
xcb_query_font_reply_t *font_info;
xcb_void_cookie_t cookie;