aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-14 01:24:34 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-14 01:24:34 +0200
commit561bb52d904a4803f42c46f807a1bce7eab239eb (patch)
treeb59cf9689dd01d36b0f249e1b18b2c935a499415
parentspawn terminal from test mdsinitrc (diff)
downloadmds-561bb52d904a4803f42c46f807a1bce7eab239eb.tar.gz
mds-561bb52d904a4803f42c46f807a1bce7eab239eb.tar.bz2
mds-561bb52d904a4803f42c46f807a1bce7eab239eb.tar.xz
add fix export of variable
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds.c4
1 files changed, 2 insertions, 2 deletions
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);