From 2e3fe61d11b606ab5be561e30649984240e90954 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sun, 28 Feb 2021 21:48:55 +0100 Subject: nxcomp/Children.cpp: reformat code drop some superflous empty lines to make code more compact. --- nxcomp/src/Children.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/nxcomp/src/Children.cpp b/nxcomp/src/Children.cpp index abfcbf2f9..829c6fbad 100644 --- a/nxcomp/src/Children.cpp +++ b/nxcomp/src/Children.cpp @@ -291,21 +291,16 @@ int NXTransDialog(const char *caption, const char *message, strcpy(newPath, "/usr/NX/bin:/opt/NX/bin:/usr/local/NX/bin:"); #ifdef __APPLE__ - // FIXME: missing length limitation! strcat(newPath, "/Applications/NX Client for OSX.app/Contents/MacOS:"); - #endif #ifdef __CYGWIN32__ - // FIXME: missing length limitation! strcat(newPath, ".:"); - #endif int newLength = strlen(newPath); - char *oldPath = getenv("PATH"); // FIXME: check if strncat would be better here @@ -327,17 +322,11 @@ int NXTransDialog(const char *caption, const char *message, // #ifdef __sun - char newEnv[DEFAULT_STRING_LIMIT + 5]; - sprintf(newEnv,"PATH=%s", newPath); - putenv(newEnv); - #else - setenv("PATH", newPath, 1); - #endif } else -- cgit v1.2.3