diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-09-05 17:48:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-09-05 17:48:08 +0000 |
commit | 0b5146a4960fad497b2e67b561a29f751b4c4c34 (patch) | |
tree | e245b8e741e87e7c5b8684157ad1fa3168210a89 /app/xinit | |
parent | a0d42516f570b23e5f116b69b8115e2b69d62c0a (diff) |
backout hard-coded behaviour change which was not discussed, in
particular no justification for why the current behaviour is wrong
Diffstat (limited to 'app/xinit')
-rw-r--r-- | app/xinit/xinit.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/xinit/xinit.c b/app/xinit/xinit.c index ff2b7b28f..1b049117c 100644 --- a/app/xinit/xinit.c +++ b/app/xinit/xinit.c @@ -653,14 +653,7 @@ shutdown(void) static void set_environment(void) { - char displayEnv[128]; - int ret; - - ret = snprintf(displayEnv, sizeof(displayEnv), "unix%s", displayNum); - if (ret < 0 || ret >= sizeof(displayEnv)) - Fatalx("unable to set DISPLAY"); - - if (setenv("DISPLAY", displayEnv, TRUE) == -1) + if (setenv("DISPLAY", displayNum, TRUE) == -1) Fatal("unable to set DISPLAY"); } |