author | Anselm R Garbe <garbeam@gmail.com> |
Sun, 01 Jun 2008 17:41:15 +0100 | |
changeset 1251 | 58dc2070a79a |
parent 1250 | 1fa12fca6c0e |
child 1252 | d4528eea6e0d |
--- a/dwm.c Sun Jun 01 11:58:19 2008 +0100 +++ b/dwm.c Sun Jun 01 17:41:15 2008 +0100 @@ -572,7 +572,7 @@ if(!len) return; if(len < olen) - strncpy(&buf[MAX(0, len - 3)], "...", len); + memcpy(&buf[MAX(0, len - 3)], "...", 3); XSetForeground(dpy, dc.gc, col[invert ? ColBG : ColFG]); if(dc.font.set) XmbDrawString(dpy, dc.drawable, dc.font.set, dc.gc, x, y, buf, len);