From 5813cb01c76404a61e3c8082630b4cfafa91de7d Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sat, 30 Mar 2013 19:38:27 +0100 Subject: 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 --- extensions/source/plugin/unx/unxmgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/source/plugin/unx/unxmgr.cxx b/extensions/source/plugin/unx/unxmgr.cxx index d7d50c97a626..85b56cda6a3e 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; }; -- cgit