summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-02-18 20:35:25 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-02-22 07:52:44 +0000
commit41b9d58fb94234964d378e27e6a5a49db9023277 (patch)
tree0bec392f51f92efa170212222aa151c9b9bd3b83 /toolkit
parent8abb2f4d57b54c42429e64302dd716bdc2b73d79 (diff)
coverity#982817 Out-of-bounds access
Not sure if it just is coverity's parser that get confused or if the compiler can also be confused in that case.. but it does not hurt to be explicit, just in case. Change-Id: Iba9df7122584272645e7fb241c3f5fd2ed4481d1 Reviewed-on: https://gerrit.libreoffice.org/2250 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 67bd7c52aab2..fb167e5f5f02 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -907,7 +907,7 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
rtl_getGlobalProcessId( (sal_uInt8*)processID );
- ::com::sun::star::uno::Sequence<sal_Int8> processIdSeq(processID, 16);
+ ::com::sun::star::uno::Sequence<sal_Int8> processIdSeq((sal_Int8*)processID, 16);
::com::sun::star::uno::Any anyHandle = xSystemDepParent->getWindowHandle(processIdSeq, SYSTEM_DEPENDENT_TYPE);