diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2011-11-12 16:42:30 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2011-11-12 16:42:30 +0000 |
commit | 2f22450e37a982c20d85918b3587509d161fda1a (patch) | |
tree | 32ea43775c5227d970f70a7f83e2f664ae296b93 /gnu | |
parent | 22b317d4814ec2f7b8b91ae1b397d3b87b000861 (diff) |
Unscrew the cross-gcc build after the bounds warning addition.
Pointed out by sthen@, LGTM jsing@.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/bfd/peXXigen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils-2.17/bfd/peXXigen.c b/gnu/usr.bin/binutils-2.17/bfd/peXXigen.c index 71300219d30..72cb056a8a3 100644 --- a/gnu/usr.bin/binutils-2.17/bfd/peXXigen.c +++ b/gnu/usr.bin/binutils-2.17/bfd/peXXigen.c @@ -235,7 +235,8 @@ _bfd_XXi_swap_aux_in (bfd * abfd, in->x_file.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset); } else - memcpy (in->x_file.x_fname, ext->x_file.x_fname, FILNMLEN); + memcpy (in->x_file.x_fname, ext->x_file.x_fname, + sizeof in->x_file.x_fname); return; case C_STAT: @@ -308,7 +309,8 @@ _bfd_XXi_swap_aux_out (bfd * abfd, H_PUT_32 (abfd, in->x_file.x_n.x_offset, ext->x_file.x_n.x_offset); } else - memcpy (ext->x_file.x_fname, in->x_file.x_fname, FILNMLEN); + memcpy (ext->x_file.x_fname, in->x_file.x_fname, + sizeof ext->x_file.x_fname); return AUXESZ; |