diff options
author | 2009-12-03 16:07:05 -0800 | |
---|---|---|
committer | 2009-12-03 16:07:05 -0800 | |
commit | 805cc709b7852d209b122dfe7bf5d42dbd44e393 (patch) | |
tree | 529bf3954e4c23192bdb89400b1127125bbcff50 | |
parent | 8d670d345893fb9b9566f6b8c20202b77d4d211a (diff) |
Apparently strlcpy is not part of a standard linux distribution... Unbreaking the sim build.
-rw-r--r-- | media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp b/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp index 955e509af759..22f58cc41ac4 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; } |