aboutsummaryrefslogtreecommitdiff
path: root/bfd/nlm.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/nlm.c')
-rw-r--r--bfd/nlm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/nlm.c b/bfd/nlm.c
index 965ca26..1c1498b 100644
--- a/bfd/nlm.c
+++ b/bfd/nlm.c
@@ -1,5 +1,5 @@
/* NLM (NetWare Loadable Module) executable support for BFD.
- Copyright 1993, 1994 Free Software Foundation, Inc.
+ Copyright 1993, 1994, 2001 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -29,8 +29,8 @@ boolean
nlm_mkobject (abfd)
bfd * abfd;
{
- nlm_tdata (abfd) =
- (struct nlm_obj_tdata *) bfd_zalloc (abfd, sizeof (struct nlm_obj_tdata));
+ bfd_size_type amt = sizeof (struct nlm_obj_tdata);
+ nlm_tdata (abfd) = (struct nlm_obj_tdata *) bfd_zalloc (abfd, amt);
if (nlm_tdata (abfd) == NULL)
return (false);