This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] memcmp() error in gas/dwarf2dbg.c
Hi Hannes,
> Like this?
> --- binutils-2.14.90.0.8/gas/dwarf2dbg.c.orig 2004-02-13 12:44:42.306841116 +0100
> +++ binutils-2.14.90.0.8/gas/dwarf2dbg.c 2004-02-13 12:45:04.418980440 +0100
> @@ -372,7 +372,7 @@
> {
> --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;
>
Much better - Andreas can you handle applying this patch please ?
Cheers
Nick