summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 9b76060f40a2..49a0320bc023 100644
--- a/sal/osl/unx/security.cxx
+++ b/sal/osl/unx/security.cxx
@@ -365,7 +365,7 @@ static bool osl_psz_getConfigDir(oslSecurity Security, sal_Char* pszDirectory, s
n = strlen(pszDirectory);
if (n + sizeof(DOT_CONFIG) < nMax)
{
- strncpy(pszDirectory+n, DOT_CONFIG, sizeof(DOT_CONFIG));
+ strcpy(pszDirectory+n, DOT_CONFIG); // safe
// try to create dir if not present
bool dirOK = true;