---
 st.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/st.c b/st.c
index 58cdb76..366e1f0 100644
--- a/st.c
+++ b/st.c
_AT_@ -3291,7 +3291,7 @@ xloadfont(Font *f, FcPattern *pattern)
        XftTextExtentsUtf8(xw.dpy, f->match,
                (const FcChar8 *) ascii_printable,
-               LEN(ascii_printable), &extents);
+               strlen(ascii_printable), &extents);
        f->set = NULL;
        f->pattern = FcPatternDuplicate(pattern);
_AT_@ -3302,7 +3302,7 @@ xloadfont(Font *f, FcPattern *pattern)
        f->rbearing = f->match->max_advance_width;
        f->height = f->ascent + f->descent;
-       f->width = DIVCEIL(extents.xOff, LEN(ascii_printable));
+       f->width = DIVCEIL(extents.xOff, strlen(ascii_printable));
        return 0;
 }
--
2.1.4
Received on Wed Mar 09 2016 - 17:11:57 CET
This archive was generated by hypermail 2.3.0 : Wed Mar 09 2016 - 17:12:12 CET