aboutsummaryrefslogtreecommitdiff
path: root/disas/m68k.c
diff options
context:
space:
mode:
Diffstat (limited to 'disas/m68k.c')
-rw-r--r--disas/m68k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disas/m68k.c b/disas/m68k.c
index 1f16e29..800b414 100644
--- a/disas/m68k.c
+++ b/disas/m68k.c
@@ -1000,7 +1000,7 @@ print_indexed (int basereg,
/* Generate the text for the index register.
Where this will be output is not yet determined. */
- sprintf (buf, "%s:%c%s",
+ snprintf(buf, sizeof(buf), "%s:%c%s",
reg_names[(word >> 12) & 0xf],
(word & 0x800) ? 'l' : 'w',
scales[(word >> 9) & 3]);