Fix buffer possible overflow when writings tags
authorByrial Jensen <byrial@vip.cybercity.dk>
Thu, 22 Dec 2011 20:01:43 +0000 (21:01 +0100)
committerByrial Jensen <byrial@vip.cybercity.dk>
Thu, 22 Dec 2011 20:01:43 +0000 (21:01 +0100)
commitfefd92a124c5bef3b465ae84b2ae30d3e5f57f37
tree2ff3ec2360ea2438847df0759aed5b9b75fb11ff
parent1d4d9cd9be0e8b7986128e0480ecef3ad3a45933
Fix buffer possible overflow when writings tags

PGNTagsStatic() could overflow its buffer and is removed. PGNTags() do the work instead of calling it.
It starts by calculation the required buffer size and then allocate the buffer.
PrintPGNTags() now prints directly to the file without having a buffer.
pgntags.c