mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 18:09:59 +00:00
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:
parent
5afbcc6cf4
commit
145e2b8f4a
@ -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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user