make sure the index is incremented in a while loop

git-svn-id: svn://10.0.0.236/trunk@12906 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blizzard%appliedtheory.com 1998-10-15 19:12:31 +00:00
parent 76c17657e3
commit 55f54e47a2

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