summaryrefslogtreecommitdiffstats
path: root/sal/osl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-01 19:19:02 +0100
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-03-02 05:37:44 +0000
commit95f8cb6823f21dd97b380136286e87e0ffa2fb24 (patch)
tree8571ac0cda4ca61941e0baf407ed36bc57605b3a /sal/osl
parentTypo fix: informations -> information and a few other adjacent typos. (diff)
downloadcore-95f8cb6823f21dd97b380136286e87e0ffa2fb24.tar.gz
core-95f8cb6823f21dd97b380136286e87e0ffa2fb24.zip
coverity#982797: Out-of-bounds write
Change-Id: I58f2040ffc7d56e8e4418a29de0dd4d263defbd2 Reviewed-on: https://gerrit.libreoffice.org/2499 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/file_misc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx
index b91d8030d770..cbfc52ff3152 100644
--- a/sal/osl/unx/file_misc.cxx
+++ b/sal/osl/unx/file_misc.cxx
@@ -1009,7 +1009,7 @@ static int oslDoCopyLink(const sal_Char* pszSourceFileName, const sal_Char* pszD
/* mfe: if dest file is symbolic link remove the link and place the file instead (hro says so) */
/* mfe: if source is a link copy the link and not the file it points to (hro says so) */
- sal_Char pszLinkContent[PATH_MAX];
+ sal_Char pszLinkContent[PATH_MAX+1];
pszLinkContent[0] = '\0';