diff options
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r-- | gcc/cp/mangle.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 6e94681..6ad9ffa 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -2392,11 +2392,7 @@ mangle_conv_op_name_for_type (type) /* Build the mangling for TYPE. */ const char *mangled_type = mangle_type_string (type); /* Allocate a temporary buffer for the complete name. */ - char *op_name = (char *) xmalloc (strlen ("operator ") - + strlen (mangled_type) + 1); - /* Assemble the mangling. */ - strcpy (op_name, "operator "); - strcat (op_name, mangled_type); + char *op_name = concat ("operator ", mangled_type, NULL); /* Find or create an identifier. */ identifier = get_identifier (op_name); /* Done with the temporary buffer. */ |