Merge branch 'eclair-mr2' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2

This commit is contained in:
Scott Main
2009-12-03 16:14:13 -08:00
committed by Android Git Automerger

View File

@@ -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;
}