mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +00:00
Make sure font glyph shader names are null-terminated.
This commit is contained in:
parent
94fb80f021
commit
4b7a623cc0
1 changed files with 2 additions and 2 deletions
|
@ -397,8 +397,8 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) {
|
|||
font->glyphs[i].s2 = readFloat();
|
||||
font->glyphs[i].t2 = readFloat();
|
||||
font->glyphs[i].glyph = readInt();
|
||||
Com_Memcpy(font->glyphs[i].shaderName, &fdFile[fdOffset], 32);
|
||||
fdOffset += 32;
|
||||
Q_strncpyz(font->glyphs[i].shaderName, (const char *)&fdFile[fdOffset], sizeof(font->glyphs[i].shaderName));
|
||||
fdOffset += sizeof(font->glyphs[i].shaderName);
|
||||
}
|
||||
font->glyphScale = readFloat();
|
||||
Com_Memcpy(font->name, &fdFile[fdOffset], MAX_QPATH);
|
||||
|
|
Loading…
Reference in a new issue