mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix heap overflow in testpaint
This commit is contained in:
parent
fffb4b1d7b
commit
25aabf6470
|
@ -244,7 +244,7 @@ namespace Intercept2
|
||||||
if (edge.offset == 0) {
|
if (edge.offset == 0) {
|
||||||
sprintf(out, " 0/%X ", edge.type);
|
sprintf(out, " 0/%X ", edge.type);
|
||||||
} else {
|
} else {
|
||||||
utf8string offset = new utf8[3];
|
utf8string offset = new utf8[16];
|
||||||
if (edge.offset < 0) {
|
if (edge.offset < 0) {
|
||||||
sprintf(offset, "%d", edge.offset);
|
sprintf(offset, "%d", edge.offset);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue