Fix an uninitialized read detected by valgrind. The array to be copied is statically sized and not a c-string.

related-to-bug: 2366619
This commit is contained in:
Andreas Huber
2010-01-11 13:30:08 -08:00
parent 3b06c9f3dd
commit 5ebc8898d7

View File

@@ -557,7 +557,7 @@ MP3Source::MP3Source(
mStarted(false),
mByteNumber(byte_number),
mGroup(NULL) {
memcpy (mTableOfContents, table_of_contents, strlen(table_of_contents));
memcpy (mTableOfContents, table_of_contents, sizeof(mTableOfContents));
}
MP3Source::~MP3Source() {