[Libreoffice-commits] core.git: sal/osl
Norbert Thiebaud
nthiebaud at gmail.com
Mon Mar 3 20:01:38 PST 2014
sal/osl/unx/profile.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 430237b3fa16bda228ff82b93228f28894568671
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Mon Mar 3 22:01:04 2014 -0600
coverity#706154: Dest buffer too small
Change-Id: Ib80ed6bbacad9fdbe7a8fbafdd71bb11037e38cb
diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.c
index e9c5144..906109b 100644
--- a/sal/osl/unx/profile.c
+++ b/sal/osl/unx/profile.c
@@ -2026,11 +2026,11 @@ static sal_Bool osl_ProfileSwapProfileNames(osl_TProfileImpl* pProfile)
pszTmpFile[0] = '\0';
pszIniFile[0] = '\0';
- osl_ProfileGenerateExtension(pProfile->m_FileName, "bak", pszBakFile, PATH_MAX);
+ osl_ProfileGenerateExtension(pProfile->m_FileName, "bak", pszBakFile, PATH_MAX - 1);
- strcpy(pszIniFile,pProfile->m_FileName);
+ strcpy(pszIniFile, pProfile->m_FileName);
- osl_ProfileGenerateExtension(pProfile->m_FileName, "tmp", pszTmpFile, PATH_MAX);
+ osl_ProfileGenerateExtension(pProfile->m_FileName, "tmp", pszTmpFile, PATH_MAX - 1);
/* unlink bak */
unlink( pszBakFile );
More information about the Libreoffice-commits
mailing list