From 561bb52d904a4803f42c46f807a1bce7eab239eb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 14 May 2014 01:24:34 +0200 Subject: add fix export of variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mds.c b/src/mds.c index 042cb48..9405139 100644 --- a/src/mds.c +++ b/src/mds.c @@ -214,8 +214,8 @@ int main(int argc_, char** argv_) /* Save MDS_DISPLAY environment variable. */ xsnprintf(pathname, /* Excuse the reuse without renaming. */ - "%s=:%u", DISPLAY_ENV, display); - putenv(pathname); + ":%u", display); + setenv(DISPLAY_ENV, pathname, 1); /* Create display socket. */ xsnprintf(pathname, "%s/%u.socket", MDS_RUNTIME_ROOT_DIRECTORY, display); -- cgit v1.2.3-70-g09d2