diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2004-12-30 03:57:13 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2004-12-30 03:57:13 +0000 |
commit | 80171dc3acb725f61e1e01451727ece8e6dc9457 (patch) | |
tree | aea418df4abe465bdb43df576c0002666501fee8 /src/libOggFLAC | |
parent | f8ecddeb7d79925d79ae091af118343d79947bd0 (diff) | |
download | flac-80171dc3acb725f61e1e01451727ece8e6dc9457.tar.gz |
fix all bare malloc() realloc() etc calls to have a proper cast in front
Diffstat (limited to 'src/libOggFLAC')
-rw-r--r-- | src/libOggFLAC/ogg_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libOggFLAC/ogg_helper.c b/src/libOggFLAC/ogg_helper.c index 5ee534de..169ee3aa 100644 --- a/src/libOggFLAC/ogg_helper.c +++ b/src/libOggFLAC/ogg_helper.c @@ -102,7 +102,7 @@ FLAC__bool simple_ogg_page__get_at(OggFLAC__SeekableStreamEncoder *encoder, FLAC } /* allocate space for the page header */ - if(0 == (page->header = malloc(OGG_MAX_HEADER_LEN))) { + if(0 == (page->header = (unsigned char *)malloc(OGG_MAX_HEADER_LEN))) { encoder->protected_->state = OggFLAC__SEEKABLE_STREAM_ENCODER_MEMORY_ALLOCATION_ERROR; return false; } @@ -144,7 +144,7 @@ FLAC__bool simple_ogg_page__get_at(OggFLAC__SeekableStreamEncoder *encoder, FLAC } /* allocate space for the page body */ - if(0 == (page->body = malloc(page->body_len))) { + if(0 == (page->body = (unsigned char *)malloc(page->body_len))) { encoder->protected_->state = OggFLAC__SEEKABLE_STREAM_ENCODER_MEMORY_ALLOCATION_ERROR; return false; } |