make sure the index is incremented in a while loop

This commit is contained in:
blizzard%appliedtheory.com 1998-10-15 19:12:31 +00:00
parent 8214e69b08
commit 4d259f7220

View File

@ -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);