From 93efc40a9dac7afc420c0d62775faf1b6cf214e0 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Tue, 20 Jan 2004 05:38:59 +0000 Subject: [PATCH] *** empty log message *** --- src/test_libFLAC++/metadata_utils.c | 4 ++-- src/test_libOggFLAC++/metadata_utils.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test_libFLAC++/metadata_utils.c b/src/test_libFLAC++/metadata_utils.c index e380775..747ab06 100644 --- a/src/test_libFLAC++/metadata_utils.c +++ b/src/test_libFLAC++/metadata_utils.c @@ -502,8 +502,8 @@ void mutils__init_metadata_blocks( unknown->is_last = true; unknown->type = 127; unknown->length = 8; - unknown->data.unknown.data = (FLAC__byte*)malloc_or_die_(8); - memcpy(unknown->data.unknown.data, "\xfe\xdc\xba\x98\xf0\xe1\xd2\xc3", 8); + unknown->data.unknown.data = (FLAC__byte*)malloc_or_die_(unknown->length); + memcpy(unknown->data.unknown.data, "\xfe\xdc\xba\x98\xf0\xe1\xd2\xc3", unknown->length); } void mutils__free_metadata_blocks( diff --git a/src/test_libOggFLAC++/metadata_utils.c b/src/test_libOggFLAC++/metadata_utils.c index e380775..747ab06 100644 --- a/src/test_libOggFLAC++/metadata_utils.c +++ b/src/test_libOggFLAC++/metadata_utils.c @@ -502,8 +502,8 @@ void mutils__init_metadata_blocks( unknown->is_last = true; unknown->type = 127; unknown->length = 8; - unknown->data.unknown.data = (FLAC__byte*)malloc_or_die_(8); - memcpy(unknown->data.unknown.data, "\xfe\xdc\xba\x98\xf0\xe1\xd2\xc3", 8); + unknown->data.unknown.data = (FLAC__byte*)malloc_or_die_(unknown->length); + memcpy(unknown->data.unknown.data, "\xfe\xdc\xba\x98\xf0\xe1\xd2\xc3", unknown->length); } void mutils__free_metadata_blocks( -- 2.7.4