diff options
Diffstat (limited to 'audio/flac/files/patch-src_libFLAC_file__decoder.c')
-rw-r--r-- | audio/flac/files/patch-src_libFLAC_file__decoder.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/audio/flac/files/patch-src_libFLAC_file__decoder.c b/audio/flac/files/patch-src_libFLAC_file__decoder.c deleted file mode 100644 index 88138d4b04d1..000000000000 --- a/audio/flac/files/patch-src_libFLAC_file__decoder.c +++ /dev/null @@ -1,22 +0,0 @@ - -$FreeBSD$ - ---- src/libFLAC/file_decoder.c.orig -+++ src/libFLAC/file_decoder.c -@@ -43,6 +43,7 @@ - #include "FLAC/assert.h" - #include "protected/file_decoder.h" - #include "protected/seekable_stream_decoder.h" -+#include "share/alloc.h" - - /*********************************************************************** - * -@@ -248,7 +249,7 @@ - decoder->private_->filename = 0; - } - if(0 != strcmp(value, "-")) { -- if(0 == (decoder->private_->filename = (char*)malloc(strlen(value)+1))) { -+ if(0 == (decoder->private_->filename = (char*)safe_malloc_add_2op_(strlen(value), /*+*/1))) { - decoder->protected_->state = FLAC__FILE_DECODER_MEMORY_ALLOCATION_ERROR; - return false; - } |