NULL-terminate font name in IFF DR2D FONS

This commit is contained in:
Chris Young 2015-07-20 19:42:50 +01:00
parent 5ea9961737
commit 70fd706e65
1 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ bool ami_svg_to_dr2d(struct IFFHandle *iffh, const char *buffer,
if(!(PushChunk(iffh,0,ID_FONS,IFFSIZE_UNKNOWN)))
{
WriteChunkBytes(iffh, fons, sizeof(struct fons_struct));
WriteChunkBytes(iffh,"Topaz",5);
WriteChunkBytes(iffh, "Topaz\0", 6);
PopChunk(iffh);
}
FreeVec(fons);