bfd/
[deliverable/binutils-gdb.git] / gas / dwarf2dbg.c
index 9601150c1613b14bec3426132e610c2147a69515..3336453a4eeffabbd37fec150f362751c474d4b2 100644 (file)
@@ -1,5 +1,5 @@
 /* dwarf2dbg.c - DWARF2 debug support
-   Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
    Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
 
    This file is part of GAS, the GNU Assembler.
@@ -49,7 +49,7 @@
 #endif
 
 #ifndef DWARF2_ADDR_SIZE
-# define DWARF2_ADDR_SIZE(bfd) (bfd_arch_bits_per_address (bfd) / 8);
+# define DWARF2_ADDR_SIZE(bfd) (bfd_arch_bits_per_address (bfd) / 8)
 #endif
 
 #ifdef BFD_ASSEMBLER
@@ -372,7 +372,7 @@ get_filenum (const char *filename, unsigned int num)
     {
       --dir_len;
       for (dir = 1; dir < dirs_in_use; ++dir)
-       if (memcmp (filename, dirs[dir], dir_len) == 0
+       if (strncmp (filename, dirs[dir], dir_len) == 0
            && dirs[dir][dir_len] == '\0')
          break;
 
This page took 0.024762 seconds and 4 git commands to generate.