mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
make sure the index is incremented in a while loop
This commit is contained in:
parent
8214e69b08
commit
4d259f7220
@ -983,8 +983,11 @@ moz_get_font(LO_TextAttr *text_attr) {
|
||||
break;
|
||||
/* wipe out the name, and go on to the next */
|
||||
index = 0;
|
||||
while (fam[index] != '\0')
|
||||
fam[index] = ' ';
|
||||
while (fam[index] != '\0')
|
||||
{
|
||||
fam[index] = ' ';
|
||||
index++;
|
||||
}
|
||||
if (index != length)
|
||||
fam[index] = ' ';
|
||||
family_name = NameFromList(fam);
|
||||
|
Loading…
Reference in New Issue
Block a user