diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-01 19:19:02 +0100 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-03-02 05:37:44 +0000 |
commit | 95f8cb6823f21dd97b380136286e87e0ffa2fb24 (patch) | |
tree | 8571ac0cda4ca61941e0baf407ed36bc57605b3a /sal | |
parent | db7a441342f7a22d23492dbd25b113e9573db192 (diff) |
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')
-rw-r--r-- | sal/osl/unx/file_misc.cxx | 2 |
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'; |