summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaol?n McNamara <cmc@openoffice.org>2010-06-24 20:59:17 +0100
committerCaol?n McNamara <cmc@openoffice.org>2010-06-24 20:59:17 +0100
commit594aabf05fc7b553acc137889bd7bb6f95bdd98d (patch)
tree6ff48517991f563be15e0124dd371b95d7ebf7cf /svx
parent49b06312d167ec3c210062ef704f8403abadf058 (diff)
cmcfixes76: #i112656# osl_setEnvironment/osl_clearEnvironment
Diffstat (limited to 'svx')
-rw-r--r--svx/source/gengal/gengal.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx
index bc8e6ef7c4bd..4120027c3e35 100644
--- a/svx/source/gengal/gengal.cxx
+++ b/svx/source/gengal/gengal.cxx
@@ -241,8 +241,9 @@ void GalApp::Init()
#endif
rtl::OUString baseBinDir = fileName.copy( 0, lastSlash );
rtl::OUString installPrefix = baseBinDir + rtl::OUString::createFromAscii( "/../.." );
- rtl::OUString assignment = rtl::OUString::createFromAscii( "OOO_INSTALL_PREFIX=" ) + installPrefix;
- putenv( strdup( OUSTRING_CSTR( assignment )));
+
+ rtl::OUString envVar(RTL_CONSTASCII_USTRINGPARAM("OOO_INSTALL_PREFIX"));
+ osl_setEnvironment(envVar.pData, installPrefix.pData);
}
OSL_TRACE( "OOO_INSTALL_PREFIX=%s", getenv( "OOO_INSTALL_PREFIX" ) );