]> git.draconx.ca Git - liblbx.git/blobdiff - src/image.c
Trivial manual fixes.
[liblbx.git] / src / image.c
index bd207e7d3dbc124dd82278db5bc96694665b31e9..ed80565439f65329875c831f200efd2645ec2213 100644 (file)
@@ -62,10 +62,10 @@ struct lbx_image_priv {
        unsigned currentx, currenty, currentn;
        int read_state;
 
-       unsigned long offsets[];
+       unsigned long offsets[FLEXIBLE_ARRAY_MEMBER];
 };
 
-static struct lbx_image_priv *lbx_img_init(unsigned char hdr[static HDR_LEN])
+static struct lbx_image_priv *lbx_img_init(unsigned char *hdr)
 {
        unsigned short nframes = unpack_16_le(hdr+6);
        struct lbx_image_priv *img;