diff options
author | Caol?n McNamara <cmc@openoffice.org> | 2010-06-24 20:59:17 +0100 |
---|---|---|
committer | Caol?n McNamara <cmc@openoffice.org> | 2010-06-24 20:59:17 +0100 |
commit | d315e8bee6e680a5f7a6f4df067e07e58bc8b61d (patch) | |
tree | 794dfd8e36a668115ce73e74bc3f4f8cd846b875 /vcl/unx/source/app/saldata.cxx | |
parent | a1e6cecc361c2f6e26ee6738231184022f6b18dd (diff) |
cmcfixes76: #i112656# osl_setEnvironment/osl_clearEnvironment
Diffstat (limited to 'vcl/unx/source/app/saldata.cxx')
-rw-r--r-- | vcl/unx/source/app/saldata.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/unx/source/app/saldata.cxx b/vcl/unx/source/app/saldata.cxx index 50ef71df8619..beb7b60a551c 100644 --- a/vcl/unx/source/app/saldata.cxx +++ b/vcl/unx/source/app/saldata.cxx @@ -425,10 +425,8 @@ void SalXLib::Init() * the clipboard build another connection * to the xserver using $DISPLAY */ - const char envpre[] = "DISPLAY="; - char *envstr = new char[sizeof(envpre)+aDisplay.getLength()]; - snprintf(envstr, sizeof(envpre)+aDisplay.getLength(), "DISPLAY=%s", aDisplay.getStr()); - putenv(envstr); + rtl::OUString envVar(RTL_CONSTASCII_USTRINGPARAM("DISPLAY")); + osl_setEnvironment(envVar.pData, aParam.pData); } break; } |