summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-12-03 16:07:05 -0800
committerAndreas Huber <andih@google.com>2009-12-03 16:07:05 -0800
commit0ef47568ed93872feab423330b10a62a432decd5 (patch)
treee8555fcda98a2fd3454c0f271a41d1dbc821971c /media/libstagefright/omx
parent97494da9d418b599fa1b9930487b90c978357634 (diff)
downloadframeworks_av-0ef47568ed93872feab423330b10a62a432decd5.zip
frameworks_av-0ef47568ed93872feab423330b10a62a432decd5.tar.gz
frameworks_av-0ef47568ed93872feab423330b10a62a432decd5.tar.bz2
Apparently strlcpy is not part of a standard linux distribution... Unbreaking the sim build.
Diffstat (limited to 'media/libstagefright/omx')
-rw-r--r--media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp b/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp
index 955e509..22f58cc 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;
}