Amazingly picky bug fixes from Valgrind.
This commit is contained in:
parent
230d62c475
commit
15680d56a6
9 changed files with 20 additions and 9 deletions
|
|
@ -28,7 +28,7 @@ cachechars(Font *f, char **ss, Rune **rr, ushort *cp, int max, int *wp, char **s
|
|||
}
|
||||
wid = 0;
|
||||
*subfontname = 0;
|
||||
for(i=0; (*sp || *rp) && i<max; sp+=w, rp+=rw){
|
||||
for(i=0; i<max && (*sp || *rp); sp+=w, rp+=rw){
|
||||
if(ss){
|
||||
r = *(uchar*)sp;
|
||||
if(r < Runeself)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue