* gij.cc (main): Use putenv.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114410
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-06-05 Tom Tromey <tromey@redhat.com>
+
+ PR libgcj/27892:
+ * gij.cc (main): Use putenv.
+
2006-06-03 Paolo Bonzini <bonzini@gnu.org>
* scripts/jar.in: Ensure return with argument has non-empty argument.
if (! libpath || strcmp (libpath, newpath))
{
- setenv (LTDL_SHLIBPATH_VAR, newpath, 1);
+ char *buffer = (char *) JvMalloc (strlen (LTDL_SHLIBPATH_VAR)
+ + strlen (newpath) + 2);
+ strcpy (buffer, LTDL_SHLIBPATH_VAR);
+ strcat (buffer, "=");
+ strcat (buffer, newpath);
+ putenv (buffer);
JvFree (newpath);
int error_code = execvp (argv[0], (char* const*) argv);