From 805cc709b7852d209b122dfe7bf5d42dbd44e393 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 3 Dec 2009 16:07:05 -0800 Subject: [PATCH] Apparently strlcpy is not part of a standard linux distribution... Unbreaking the sim build. --- media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp b/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp index 955e509af7596..22f58cc41ac4d 100644 --- a/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp +++ b/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp @@ -74,7 +74,8 @@ OMX_ERRORTYPE OMXSoftwareCodecsPlugin::enumerateComponents( return OMX_ErrorNoMore; } - strlcpy(name, kComponentInfos[index].mName, size); + strncpy(name, kComponentInfos[index].mName, size - 1); + name[size - 1] = '\0'; return OMX_ErrorNone; }