From 85e5d39e608f9499a7fe46a80434c3aee7d338e7 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 3 Dec 2009 16:22:52 -0800 Subject: [PATCH] Two more uses of strlcpy that break the sim build. Now fixed. --- media/libstagefright/omx/mp3dec/MP3Decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/libstagefright/omx/mp3dec/MP3Decoder.cpp b/media/libstagefright/omx/mp3dec/MP3Decoder.cpp index ef085e129e1da..588973fba1c2b 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;