X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fwav.c;h=86a8bb3a6e70567202f534b10b79f45044e45fed;hb=f58dce81384e4324f00f4ca51830f3245d15136b;hp=72d95025f319ebb066f28d439418c0b99dc20bff;hpb=3ef17c4cee41231e1eed731c08381d3ddf0c8d1a;p=swftools.git diff --git a/lib/wav.c b/lib/wav.c index 72d9502..86a8bb3 100644 --- a/lib/wav.c +++ b/lib/wav.c @@ -89,7 +89,7 @@ int wav_read(struct WAV*wav, char* filename) fclose(fi); return 0; } - if(strncmp(b, "WAVE", 4)) + if(strncmp((const char*)b, "WAVE", 4)) { fprintf(stderr, "wav_read: not a WAV file (2)\n"); fclose(fi); @@ -123,7 +123,7 @@ int wav_read(struct WAV*wav, char* filename) if (!strncmp(block.id, "data", 4)) { int l; - wav->data = malloc(block.size); + wav->data = (unsigned char*)malloc(block.size); if(!wav->data) { fprintf(stderr, "Out of memory (%d bytes needed)", block.size);