mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 00:32:30 +08:00
This fixes a compile time error triggered by -Werror=format-security because
a call to sprintf was being made with a non-constant formatting string. * config/tc-score.c (s3_parse_pce_inst): Add "%s" parameter to sprintf in order to avoid a compile time warning.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-03-27 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* config/tc-score.c (s3_parse_pce_inst): Add "%s" parameter to
|
||||||
|
sprintf in order to avoid a compile time warning.
|
||||||
|
|
||||||
2014-03-26 Nick Clifton <nickc@redhat.com>
|
2014-03-26 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* config/tc-rl78.c (rl78_op): Issue an error message if a 16-bit
|
* config/tc-rl78.c (rl78_op): Issue an error message if a 16-bit
|
||||||
|
@ -5363,7 +5363,7 @@ s3_parse_pce_inst (char *insnstr)
|
|||||||
|| ((pec_part_1.size == s3_INSN16_SIZE) && (s3_inst.size == s3_INSN_SIZE)))
|
|| ((pec_part_1.size == s3_INSN16_SIZE) && (s3_inst.size == s3_INSN_SIZE)))
|
||||||
{
|
{
|
||||||
s3_inst.error = _("pce instruction error (16 bit || 16 bit)'");
|
s3_inst.error = _("pce instruction error (16 bit || 16 bit)'");
|
||||||
sprintf (s3_inst.str, insnstr);
|
sprintf (s3_inst.str, "%s", insnstr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user