summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-12-03 16:22:52 -0800
committerAndreas Huber <andih@google.com>2009-12-03 16:22:52 -0800
commit15478f3287c62a780d19b9059023331721bd4f4f (patch)
treea617c79c852b63dba38b2f99200b8270f81d87a3 /media/libstagefright/omx
parent0ef47568ed93872feab423330b10a62a432decd5 (diff)
downloadframeworks_av-15478f3287c62a780d19b9059023331721bd4f4f.zip
frameworks_av-15478f3287c62a780d19b9059023331721bd4f4f.tar.gz
frameworks_av-15478f3287c62a780d19b9059023331721bd4f4f.tar.bz2
Two more uses of strlcpy that break the sim build. Now fixed.
Diffstat (limited to 'media/libstagefright/omx')
-rw-r--r--media/libstagefright/omx/mp3dec/MP3Decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/omx/mp3dec/MP3Decoder.cpp b/media/libstagefright/omx/mp3dec/MP3Decoder.cpp
index ef085e1..588973f 100644
--- a/media/libstagefright/omx/mp3dec/MP3Decoder.cpp
+++ b/media/libstagefright/omx/mp3dec/MP3Decoder.cpp
@@ -51,7 +51,7 @@ void MP3Decoder::initPort(OMX_U32 portIndex) {
if (portIndex == kPortIndexInput) {
def->nBufferSize = 8192;
- strlcpy(audioDef->cMIMEType, "audio/mpeg", 128);
+ strcpy(audioDef->cMIMEType, "audio/mpeg");
audioDef->pNativeRender = NULL;
audioDef->bFlagErrorConcealment = OMX_FALSE;
audioDef->eEncoding = OMX_AUDIO_CodingMP3;
@@ -59,7 +59,7 @@ void MP3Decoder::initPort(OMX_U32 portIndex) {
CHECK_EQ(portIndex, kPortIndexOutput);
def->nBufferSize = 8192;
- strlcpy(audioDef->cMIMEType, "audio/raw", 128);
+ strcpy(audioDef->cMIMEType, "audio/raw");
audioDef->pNativeRender = NULL;
audioDef->bFlagErrorConcealment = OMX_FALSE;
audioDef->eEncoding = OMX_AUDIO_CodingPCM;