Merge branch 'eclair-mr2' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2
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 @@
return OMX_ErrorNoMore;
}
- strlcpy(name, kComponentInfos[index].mName, size);
+ strncpy(name, kComponentInfos[index].mName, size - 1);
+ name[size - 1] = '\0';
return OMX_ErrorNone;
}