diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-15 08:59:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-15 08:59:49 +0200 |
commit | b89c5c111b1fafdb2b0e4fd1d8bad0a864a670bc (patch) | |
tree | c0f1d2f765738b742686aa08d302686931489250 /sal | |
parent | bfaf85248c49249366434208ca7b71cbf6d930c1 (diff) |
fix android build
Change-Id: Id53f9d2a5adf126db9abeab620bb92b8720425f7
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/security.cxx | 2 |
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; |