summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-15 08:59:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-15 08:59:49 +0200
commitb89c5c111b1fafdb2b0e4fd1d8bad0a864a670bc (patch)
treec0f1d2f765738b742686aa08d302686931489250 /sal
parentloplugin:useuniqueptr in ImplToolBoxPrivateData (diff)
downloadcore-b89c5c111b1fafdb2b0e4fd1d8bad0a864a670bc.tar.gz
core-b89c5c111b1fafdb2b0e4fd1d8bad0a864a670bc.zip
fix android build
Change-Id: Id53f9d2a5adf126db9abeab620bb92b8720425f7
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/security.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/security.cxx b/sal/osl/unx/security.cxx
index bdd9db6b7b94..9b76060f40a2 100644
--- a/sal/osl/unx/security.cxx
+++ b/sal/osl/unx/security.cxx
@@ -263,7 +263,7 @@ static bool osl_psz_getHomeDir(oslSecurity Security, sal_Char* pszDirectory, sal
OUSTRING_TO_OSTRING_CVTFLAGS);
if (pStrValue && pStrValue->length > 0)
{
- sal_Int32 nCopy = (sal_Int32)std::min(nMax-1, pStrValue->length) ;
+ sal_Int32 nCopy = (sal_Int32)std::min<sal_uInt32>(nMax-1, pStrValue->length) ;
strncpy (pszDirectory, pStrValue->buffer, nCopy);
pszDirectory[nCopy] = '\0';
bRet = (std::size_t)pStrValue->length < nMax;