* avr-dis.c: Replace uses of sprintf without a format string with
authorNick Clifton <nickc@redhat.com>
Thu, 6 Nov 2008 12:03:24 +0000 (12:03 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 6 Nov 2008 12:03:24 +0000 (12:03 +0000)
        calls to strcpy.

opcodes/ChangeLog
opcodes/avr-dis.c

index 90052ae1fbe86b11f0be120a34b01f92b355d398..ace3f534717cff0b74f3f61cb4c92b1ba8d363f5 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-06  Nick Clifton  <nickc@redhat.com>
+
+       * avr-dis.c: Replace uses of sprintf without a format string with
+       calls to strcpy.
+
 2008-11-03  H.J. Lu  <hongjiu.lu@intel.com>
 
        * i386-opc.tbl: Add cmovpe and cmovpo.
index 17f9eb1f93536be49042a3fc07df541f7559eed5..976c37176f13b917d1e9e36da8332880a5472e7f 100644 (file)
@@ -1,5 +1,5 @@
 /* Disassemble AVR instructions.
-   Copyright 1999, 2000, 2002, 2004, 2005, 2006, 2007
+   Copyright 1999, 2000, 2002, 2004, 2005, 2006, 2007, 2008
    Free Software Foundation, Inc.
 
    Contributed by Denis Chertykov <denisc@overta.ru>
@@ -109,7 +109,7 @@ avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra
            case 0x100e: xyz = "-X"; break;
            default: xyz = "??"; ok = 0;
          }
-       sprintf (buf, xyz);
+       strcpy (buf, xyz);
 
        if (AVR_UNDEF_P (insn))
          sprintf (comment, _("undefined"));
@@ -149,7 +149,7 @@ avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra
         value of the address only once, but this would mean recoding
         objdump_print_address() which would affect many targets.  */
       sprintf (buf, "%#lx", (unsigned long) *sym_addr);      
-      sprintf (comment, comment_start);
+      strcpy (comment, comment_start);
       break;
       
     case 'L':
@@ -158,7 +158,7 @@ avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra
        sprintf (buf, ".%+-8d", rel_addr);
         *sym = 1;
         *sym_addr = pc + 2 + rel_addr;
-       sprintf (comment, comment_start);
+       strcpy (comment, comment_start);
       }
       break;
 
@@ -169,7 +169,7 @@ avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra
        sprintf (buf, ".%+-8d", rel_addr);
         *sym = 1;
         *sym_addr = pc + 2 + rel_addr;
-       sprintf (comment, comment_start);
+       strcpy (comment, comment_start);
       }
       break;
 
This page took 0.037187 seconds and 4 git commands to generate.