src/alac.c: Fix VLA size in alac_close()

The type of `kuki_data` was `uint8_t *` instead of `uint8_t`. For
some reason the C type checker was not able to pick this up.

Closes:  https://github.com/erikd/libsndfile/issues/135
This commit is contained in:
Erik de Castro Lopo 2016-06-25 08:48:29 +10:00
parent 5afbcc6cf4
commit 145e2b8f4a

View File

@ -170,7 +170,7 @@ alac_close (SF_PRIVATE *psf)
{ ALAC_ENCODER *penc = &plac->encoder ;
SF_CHUNK_INFO chunk_info ;
sf_count_t readcount ;
uint8_t *kuki_data [plac->kuki_size] ;
uint8_t kuki_data [plac->kuki_size] ;
uint32_t pakt_size = 0, saved_partial_block_frames ;
plac->final_write_block = 1 ;