Pass section when available to bfd_octets_per_byte
[deliverable/binutils-gdb.git] / bfd / bfd-in2.h
index 80ff8e89b58413b15530da7967ea43d0c371f8a6..44902fc8d05ca82e845ece5cb41846467a79b620 100644 (file)
@@ -6861,7 +6861,7 @@ static inline bfd_size_type
 bfd_get_section_limit (const bfd *abfd, const asection *sec)
 {
   return (bfd_get_section_limit_octets (abfd, sec)
-          / bfd_octets_per_byte (abfd, NULL));
+          / bfd_octets_per_byte (abfd, sec));
 }
 
 /* Functions to handle insertion and deletion of a bfd's sections.  These
This page took 0.037649 seconds and 4 git commands to generate.