fix potential overflow in dump_regex

This commit is contained in:
Maxime Coste 2018-04-28 09:26:14 +10:00
parent 72bf881488
commit 2b9ec411d3

View File

@ -998,7 +998,7 @@ String dump_regex(const CompiledRegex& program)
int count = 0;
for (auto& inst : program.instructions)
{
char buf[10];
char buf[20];
sprintf(buf, " %03d ", count++);
res += buf;
switch (inst.op)