Merge "The mp3 decoder should not assert that decoding was successful but return an error instead."
diff --git a/media/libstagefright/MP3Extractor.cpp b/media/libstagefright/MP3Extractor.cpp
index 14e6177..b8e76fd 100644
--- a/media/libstagefright/MP3Extractor.cpp
+++ b/media/libstagefright/MP3Extractor.cpp
@@ -557,7 +557,7 @@
       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() {