# HG changeset patch # User Anselm R Garbe # Date 1219050996 -3600 # Node ID 1ee96809e6f2a6f668ca994443948737f419169e # Parent 06677766e7aa76ce28f49e0889214048df70d52a removed the i = textnw... as remarked by Martin Hurton diff -r 06677766e7aa -r 1ee96809e6f2 dwm.c --- a/dwm.c Mon Aug 18 10:14:51 2008 +0100 +++ b/dwm.c Mon Aug 18 10:16:36 2008 +0100 @@ -581,7 +581,7 @@ y = dc.y + (dc.h / 2) - (h / 2) + dc.font.ascent; x = dc.x + (h / 2); /* shorten text if necessary */ - for(len = MIN(olen, sizeof buf); len && (i = textnw(buf, len)) > dc.w - h; len--); + for(len = MIN(olen, sizeof buf); len && textnw(buf, len) > dc.w - h; len--); if(!len) return; memcpy(buf, text, len);