aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-score.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 38362f5..bdb7c2f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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>
* config/tc-rl78.c (rl78_op): Issue an error message if a 16-bit
diff --git a/gas/config/tc-score.c b/gas/config/tc-score.c
index 8ca273c..6242b8c 100644
--- a/gas/config/tc-score.c
+++ b/gas/config/tc-score.c
@@ -5363,7 +5363,7 @@ s3_parse_pce_inst (char *insnstr)
|| ((pec_part_1.size == s3_INSN16_SIZE) && (s3_inst.size == s3_INSN_SIZE)))
{
s3_inst.error = _("pce instruction error (16 bit || 16 bit)'");
- sprintf (s3_inst.str, insnstr);
+ sprintf (s3_inst.str, "%s", insnstr);
return;
}