OSDN Git Service

2009-11-24 Tristan Gingold <gingold@adacore.com>
[pf3gnuchains/pf3gnuchains3x.git] / bfd / compress.c
index a2fcff7..5b6ee0e 100644 (file)
@@ -89,7 +89,7 @@ bfd_uncompress_section_contents (bfd_byte **buffer, bfd_size_type *size)
   strm.avail_in = compressed_size - header_size;
   strm.next_in = (Bytef*) compressed_buffer + header_size;
   strm.avail_out = uncompressed_size;
-  uncompressed_buffer = bfd_malloc (uncompressed_size);
+  uncompressed_buffer = (bfd_byte *) bfd_malloc (uncompressed_size);
   if (! uncompressed_buffer)
     return FALSE;