From f6579c43410c4af6e8fd90aed7397d34278bc972 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 27 Mar 2017 13:58:46 +0200 Subject: [PATCH] Use the right header sizes for reading .aiff and .au files. From nicm@. --- aucat/afile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aucat/afile.c b/aucat/afile.c index ec41c9b..7a59aa9 100644 --- a/aucat/afile.c +++ b/aucat/afile.c @@ -534,7 +534,7 @@ afile_aiff_readhdr(struct afile *f) unsigned int csize, rsize, nfr = 0, pos = 0, offs; int comm_done = 0, comp; - if (!afile_readhdr(f, &form, sizeof(struct wav_riff))) + if (!afile_readhdr(f, &form, sizeof(struct aiff_form))) return 0; if (memcmp(&form.id, &aiff_id_form, 4) != 0) { log_puts(f->path); @@ -656,7 +656,7 @@ afile_au_readhdr(struct afile *f) struct au_hdr hdr; unsigned int fmt; - if (!afile_readhdr(f, &hdr, sizeof(struct wav_riff))) + if (!afile_readhdr(f, &hdr, sizeof(struct au_hdr))) return 0; if (memcmp(&hdr.id, &au_id, 4) != 0) { log_puts(f->path);