diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-05-02 13:34:26 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-05-02 13:34:26 +0000 |
commit | f9f21a03c5ca7dc94f144f39da10eb41836487f8 (patch) | |
tree | ecdad61f873f90093fbc4fb1a3d5deec6b907628 /gas/config/tc-tic30.c | |
parent | a8bc6c780e54b1dad7c356c815965f87df0314c7 (diff) | |
download | gdb-f9f21a03c5ca7dc94f144f39da10eb41836487f8.zip gdb-f9f21a03c5ca7dc94f144f39da10eb41836487f8.tar.gz gdb-f9f21a03c5ca7dc94f144f39da10eb41836487f8.tar.bz2 |
2006-05-02 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (output_invalid_buf): Change size to 16.
* config/tc-tic30.c (output_invalid_buf): Likewise.
* config/tc-i386.c (output_invalid): Use snprintf instead of
sprintf.
* config/tc-ia64.c (declare_register_set): Likewise.
(emit_one_bundle): Likewise.
(check_dependencies): Likewise.
* config/tc-tic30.c (output_invalid): Likewise.
Diffstat (limited to 'gas/config/tc-tic30.c')
-rw-r--r-- | gas/config/tc-tic30.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gas/config/tc-tic30.c b/gas/config/tc-tic30.c index b4acccc..aa0b7b7 100644 --- a/gas/config/tc-tic30.c +++ b/gas/config/tc-tic30.c @@ -273,15 +273,17 @@ struct tic30_insn struct tic30_insn insn; static int found_parallel_insn; -static char output_invalid_buf[8]; +static char output_invalid_buf[16]; static char * output_invalid (char c) { if (ISPRINT (c)) - sprintf (output_invalid_buf, "'%c'", c); + snprintf (output_invalid_buf, sizeof (output_invalid_buf), + "'%c'", c); else - sprintf (output_invalid_buf, "(0x%x)", (unsigned) c); + snprintf (output_invalid_buf, sizeof (output_invalid_buf), + "(0x%x)", (unsigned) c); return output_invalid_buf; } |