Fix format-truncation warning in bytecode.cpp

This commit is contained in:
Michael Hansen
2021-04-12 10:12:45 -07:00
parent 768da6f1e6
commit 56e549640f

View File

@@ -58,8 +58,8 @@ const char* Pyc::OpcodeName(int opcode)
if (opcode < PYC_LAST_OPCODE)
return opcode_names[opcode];
static char badcode[10];
snprintf(badcode, 10, "<%d>", opcode);
static char badcode[16];
snprintf(badcode, sizeof(badcode), "<%d>", opcode);
return badcode;
};