diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-03-24 17:20:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-03-24 17:20:04 +0000 |
commit | 8d5c49ada92e0203a01619c68ff09ca71b5a503b (patch) | |
tree | 4595ea9827074b5c0e8abaf53cfc70033efcdaaa | |
parent | 56106e60d6ce10d0ca1bfdcca8fabe8a80beabd4 (diff) |
Use the right header sizes for reading .aiff and .au files, ok ratchov
-rw-r--r-- | usr.bin/aucat/afile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/afile.c b/usr.bin/aucat/afile.c index ec41c9b8843..7a59aa96dd3 100644 --- a/usr.bin/aucat/afile.c +++ b/usr.bin/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); |