diff options
Diffstat (limited to 'gdb/m32c-tdep.c')
-rw-r--r-- | gdb/m32c-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c index b680fa0..f68fa4a 100644 --- a/gdb/m32c-tdep.c +++ b/gdb/m32c-tdep.c @@ -200,16 +200,16 @@ make_types (struct gdbarch *arch) TYPE_UNSIGNED (tdep->ptr_voyd) = 1; tdep->func_voyd = lookup_function_type (tdep->voyd); - sprintf (type_name, "%s_data_addr_t", - gdbarch_bfd_arch_info (arch)->printable_name); + xsnprintf (type_name, sizeof (type_name), "%s_data_addr_t", + gdbarch_bfd_arch_info (arch)->printable_name); tdep->data_addr_reg_type = arch_type (arch, TYPE_CODE_PTR, data_addr_reg_bits / TARGET_CHAR_BIT, xstrdup (type_name)); TYPE_TARGET_TYPE (tdep->data_addr_reg_type) = tdep->voyd; TYPE_UNSIGNED (tdep->data_addr_reg_type) = 1; - sprintf (type_name, "%s_code_addr_t", - gdbarch_bfd_arch_info (arch)->printable_name); + xsnprintf (type_name, sizeof (type_name), "%s_code_addr_t", + gdbarch_bfd_arch_info (arch)->printable_name); tdep->code_addr_reg_type = arch_type (arch, TYPE_CODE_PTR, code_addr_reg_bits / TARGET_CHAR_BIT, xstrdup (type_name)); |