OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d670d3
)
Apparently strlcpy is not part of a standard linux distribution... Unbreaking the...
author
Andreas Huber
<andih@google.com>
Fri, 4 Dec 2009 00:07:05 +0000
(16:07 -0800)
committer
Andreas Huber
<andih@google.com>
Fri, 4 Dec 2009 00:07:05 +0000
(16:07 -0800)
media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp
patch
|
blob
|
history
diff --git
a/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp
b/media/libstagefright/omx/OMXSoftwareCodecsPlugin.cpp
index
955e509
..
22f58cc
100644
(file)
--- 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;
}