diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-03 03:12:17 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-03 03:12:17 +0000 |
commit | 4be31a2e9bcc8c75d1efa8db13618f34b2220ae2 (patch) | |
tree | 8a11d77f7346fff44c755c40e7c81b67f833edbf /gnu/usr.bin/binutils | |
parent | adca75bb9d39a97862be3ebcd53a34d2acc1c3d8 (diff) |
More format string paranoia; deraadt@ ok
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r-- | gnu/usr.bin/binutils/gas/config/tc-alpha.c | 2 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gas/config/tc-i960.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.bin/binutils/gas/config/tc-alpha.c b/gnu/usr.bin/binutils/gas/config/tc-alpha.c index 61dba4b8a4f..5f026078e34 100644 --- a/gnu/usr.bin/binutils/gas/config/tc-alpha.c +++ b/gnu/usr.bin/binutils/gas/config/tc-alpha.c @@ -2349,7 +2349,7 @@ insert_operand(insn, operand, val, file, line) insn = (*operand->insert) (insn, val, &errmsg); if (errmsg) - as_warn (errmsg); + as_warn ("%s", errmsg); } else insn |= ((val & ((1 << operand->bits) - 1)) << operand->shift); diff --git a/gnu/usr.bin/binutils/gas/config/tc-i960.c b/gnu/usr.bin/binutils/gas/config/tc-i960.c index d8c15c09911..13cedc175ae 100644 --- a/gnu/usr.bin/binutils/gas/config/tc-i960.c +++ b/gnu/usr.bin/binutils/gas/config/tc-i960.c @@ -661,7 +661,7 @@ md_assemble (textP) case REG: if (branch_predict) { - as_warn (bp_error_msg); + as_warn ("%s", bp_error_msg); } reg_fmt (args, oP); break; @@ -670,7 +670,7 @@ md_assemble (textP) { if (branch_predict) { - as_warn (bp_error_msg); + as_warn ("%s", bp_error_msg); } mem_fmt (args, oP, 1); break; @@ -682,14 +682,14 @@ md_assemble (textP) case MEM16: if (branch_predict) { - as_warn (bp_error_msg); + as_warn ("%s", bp_error_msg); } mem_fmt (args, oP, 0); break; case CALLJ: if (branch_predict) { - as_warn (bp_error_msg); + as_warn ("%s", bp_error_msg); } /* Output opcode & set up "fixup" (relocation); flag relocation as 'callj' type. */ |