NULL-terminate font name in IFF DR2D FONS
This commit is contained in:
parent
5ea9961737
commit
70fd706e65
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue