[Libreoffice-commits] core.git: extensions/source
Eike Rathke
erack at redhat.com
Sat Mar 30 11:40:44 PDT 2013
extensions/source/plugin/unx/unxmgr.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5813cb01c76404a61e3c8082630b4cfafa91de7d
Author: Eike Rathke <erack at redhat.com>
Date: Sat Mar 30 19:38:27 2013 +0100
certainly this was not meant to be _PC_NAME_MAX
_PC_NAME_MAX is a symbolic constant meant to be used as a pathconf()
argument, not a buffer length.
See also 2cd4e55bb36a9a3d13971b530469188e3fb59dfe
Change-Id: I94d19bd6f9f0ae501329d6a1edecad630f44b356
diff --git a/extensions/source/plugin/unx/unxmgr.cxx b/extensions/source/plugin/unx/unxmgr.cxx
index d7d50c9..85b56cd 100644
--- a/extensions/source/plugin/unx/unxmgr.cxx
+++ b/extensions/source/plugin/unx/unxmgr.cxx
@@ -184,7 +184,7 @@ static bool CheckPlugin( const rtl::OString& rPath, list< PluginDescription* >&
union maxDirent
{
- char aBuffer[ sizeof( struct dirent ) + _PC_NAME_MAX +1 ];
+ char aBuffer[ sizeof( struct dirent ) + PATH_MAX +1 ];
struct dirent asDirent;
};
More information about the Libreoffice-commits
mailing list