From 2fcba16dc48ed7c0a507c18731a41a99f485ee46 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 18 Jan 2013 13:19:45 +0100 Subject: Never pass -env: arguments across OfficeIPC connection Change-Id: I1874ad0542bc8dcbe9ec588599a054030fd5d7d8 --- desktop/unx/source/start.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'desktop/unx/source/start.c') diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c index 0e32c590f9de..c6b43395f9b5 100644 --- a/desktop/unx/source/start.c +++ b/desktop/unx/source/start.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include @@ -454,7 +455,7 @@ send_args( int fd, rtl_uString *pCwdPath ) size_t nLen; rtl_uString *pEscapedCwdPath = escape_path( pCwdPath ); sal_uInt32 nArg = 0; - sal_uInt32 nArgCount = osl_getCommandArgCount(); + sal_uInt32 nArgCount = rtl_getAppCommandArgCount(); rtl_uString_new_WithLength( &pBuffer, nCapacity ); rtl_uString_new( &pTmp ); @@ -487,7 +488,7 @@ send_args( int fd, rtl_uString *pCwdPath ) rtl_uString_getLength( pBuffer ), ",", 1 ); - osl_getCommandArg( nArg, &pTmp ); + rtl_getAppCommandArg( nArg, &pTmp ); pEscapedTmp = escape_path( pTmp ); -- cgit