git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added fullbitmapoutputdev
[swftools.git]
/
lib
/
wav.c
diff --git
a/lib/wav.c
b/lib/wav.c
index
72d9502
..
86a8bb3
100644
(file)
--- a/
lib/wav.c
+++ b/
lib/wav.c
@@
-89,7
+89,7
@@
int wav_read(struct WAV*wav, char* filename)
fclose(fi);
return 0;
}
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);
{
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;
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);
if(!wav->data)
{
fprintf(stderr, "Out of memory (%d bytes needed)", block.size);