aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds.c
diff options
context:
space:
mode:
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);