diff options
Diffstat (limited to 'src/devices/cpu/apexc/apexcdsm.cpp')
-rw-r--r-- | src/devices/cpu/apexc/apexcdsm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/apexc/apexcdsm.cpp b/src/devices/cpu/apexc/apexcdsm.cpp index bb581dd2850..c0b07e894cf 100644 --- a/src/devices/cpu/apexc/apexcdsm.cpp +++ b/src/devices/cpu/apexc/apexcdsm.cpp @@ -101,7 +101,7 @@ offs_t apexc_disassembler::disassemble(std::ostream &stream, offs_t pc, const da the_desc = & instructions[function >> 1]; /* generate mnemonic : append a 'v' to the basic mnemonic if it is a vector instruction */ - sprintf(mnemonic, "%.*s%c", (int)sizeof(mnemonic)-2, the_desc->mnemonic, vector ? 'v' : ' '); + snprintf(mnemonic, 9, "%.*s%c", (int)sizeof(mnemonic)-2, the_desc->mnemonic, vector ? 'v' : ' '); /* print mnemonic and n immediate */ switch (the_desc->format) |