Fix sizeof(pointer) error in vita_audio.c

Getting the sizeof a pointer is always the same value, either dereference the pointer or use its type to get the correct size.
This commit is contained in:
Rab H. Sonmai 2016-10-15 19:38:41 +02:00 committed by GitHub
parent d240984c07
commit a7422827c8

View File

@ -481,8 +481,8 @@ vitaWav *vitaWavLoad(const char *filename)
lSize = sceIoLseek32(fd, 0, SCE_SEEK_END);
sceIoLseek32(fd, 0, SCE_SEEK_SET);
wav = malloc(lSize + sizeof(wav));
wavfile = (unsigned char*)(wav) + sizeof(wav);
wav = malloc(lSize + sizeof(vitaWav));
wavfile = (unsigned char*)(wav) + sizeof(vitaWav);
filelen = sceIoRead(fd, wavfile, lSize);