X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/59d43aadba53b164dc529cfef069c5aeb9a65807..HEAD:/src/lbx.c diff --git a/src/lbx.c b/src/lbx.c index f96344d..8080b67 100644 --- a/src/lbx.c +++ b/src/lbx.c @@ -42,7 +42,7 @@ struct lbx_priv { struct lbx_file_state *last_file; - unsigned long offsets[]; + unsigned long offsets[FLEXIBLE_ARRAY_MEMBER]; }; struct lbx_file_state { @@ -51,7 +51,7 @@ struct lbx_file_state { int eof; }; -static struct lbx_priv *lbx_init(unsigned char hdr[static LBX_HDR_SIZE]) +static struct lbx_priv *lbx_init(unsigned char *hdr) { unsigned short nfiles = unpack_16_le(hdr+0); unsigned long magic = unpack_32_le(hdr+2);