break;
}
+ l = strlen(text->str); /* number of bytes */
+
if (t->shadow) {
if (t->tint >= 0) {
c.color.red = 0;
}
XftDrawStringUtf8(d, &c, t->font->xftfont, x + t->offset,
t->font->xftfont->ascent + y + t->offset,
- (FcChar8*)text->str, strlen(text->str));
+ (FcChar8*)text->str, l);
}
c.color.red = t->color->r | t->color->r << 8;
c.color.green = t->color->g | t->color->g << 8;
XftDrawStringUtf8(d, &c, t->font->xftfont, x,
t->font->xftfont->ascent + y,
- (FcChar8*)text->str, strlen(text->str));
+ (FcChar8*)text->str, l);
return;
}