[project @ 2004-09-14 14:48:51 by jmb]

Fix stupidity related to font table initialisation.

svn path=/import/netsurf/; revision=1279
This commit is contained in:
John Mark Bell 2004-09-14 14:48:51 +00:00
parent c4772ea99c
commit dd183bcb7e
1 changed files with 3 additions and 2 deletions

View File

@ -873,8 +873,9 @@ void nsfont_fill_nametable(void)
}
for (j = 0; j != FONT_FACES; j++) {
/**\todo Bold, italic, smallcaps */
strncpy(ufont_table[FONT_FACES*i+j],
name, FONT_MAX_NAME);
if (name)
strncpy(ufont_table[FONT_FACES*i+j],
name, FONT_MAX_NAME);
}
}
}