- if (frclen >= LEN(frc)) {
- frclen = LEN(frc) - 1;
- XftFontClose(xw.dpy, frc[frclen].font);
- frc[frclen].unicodep = 0;
+ if (frclen >= frccap) {
+ frccap += 16;
+ if (!frc)
+ frc = xmalloc(frccap * sizeof(Fontcache));
+ else
+ frc = xrealloc(frc, frccap * sizeof(Fontcache));