tc-cr16.c: Use memmove to concatenate 2 overlapping strings
PR gas/26041 * config/tc-cr16.c (md_assemble): Use memmove to concatenate 2 overlapping strings.
This commit is contained in:
parent
dcb5d41bef
commit
9fcc34577e
@ -1,3 +1,9 @@
|
||||
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR gas/26041
|
||||
* config/tc-cr16.c (md_assemble): Use memmove to concatenate
|
||||
2 overlapping strings.
|
||||
|
||||
2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
|
||||
|
||||
@ -2560,8 +2560,11 @@ md_assemble (char *op)
|
||||
if (streq ("cinv", op))
|
||||
{
|
||||
/* Validate the cinv options. */
|
||||
unsigned int op_len, param_len;
|
||||
check_cinv_options (param);
|
||||
strcat (op, param);
|
||||
op_len = strlen (op);
|
||||
param_len = strlen (param) + 1;
|
||||
memmove (op + op_len, param, param_len);
|
||||
}
|
||||
|
||||
/* MAPPING - SHIFT INSN, if imm4/imm16 positive values
|
||||
|
||||
Loading…
Reference in New Issue
Block a user