updated the for-loop with Gottox' proposal
077d3e43
1 file(s) · +1 −1
| 570 | 570 | if(!len) |
|
| 571 | 571 | return; |
|
| 572 | 572 | if(len < olen) |
|
| 573 | - | for(i = len; i >= MAX(0, len - 3); buf[i--] = '.'); |
|
| 573 | + | for(i = len; i && i > len - 3; buf[--i] = '.'); |
|
| 574 | 574 | XSetForeground(dpy, dc.gc, col[invert ? ColBG : ColFG]); |
|
| 575 | 575 | if(dc.font.set) |
|
| 576 | 576 | XmbDrawString(dpy, dc.drawable, dc.font.set, dc.gc, x, y, buf, len); |