From 6b9846f69ddb4799e5709c7f827561f5f7a1062c Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Wed, 10 Jun 2009 12:51:17 +0000 Subject: [PATCH] Fix gcc4 build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31005 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp b/src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp index 842ba82989..1a17fd1e6a 100644 --- a/src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp +++ b/src/add-ons/media/plugins/wav_reader/WavReaderPlugin.cpp @@ -302,7 +302,7 @@ WavReader::Sniff(int32 *streamCount) fMetaData.extra_size = format.extra_size; if (fMetaData.extra_size > 0) { - fMetaData.extra_data = format.extra_data; + memcpy(fMetaData.extra_data, format.extra_data, format.extra_size); } fMetaData.channels = UINT16(format.channels); fMetaData.samples_per_sec = UINT32(format.samples_per_sec);