Amazingly picky bug fixes from Valgrind.

This commit is contained in:
rsc 2004-03-05 05:53:11 +00:00
parent 230d62c475
commit 15680d56a6
9 changed files with 20 additions and 9 deletions

View file

@ -25,7 +25,7 @@ _stringnwidth(Font *f, char *s, Rune *r, int len)
}else
rptr = &r;
twid = 0;
while((*s || *r) && len){
while(len && (*s || *r)){
max = Max;
if(len < max)
max = len;