mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Fix format-truncation warning in bytecode.cpp
This commit is contained in:
parent
768da6f1e6
commit
56e549640f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue