Commit aca583b2 authored by Jason Rumney's avatar Jason Rumney
Browse files

(init-environment): Duplicate local string before putenv.

parent dc220243
......@@ -704,7 +704,7 @@ init_environment (char ** argv)
{
char * var = alloca (strlen (tmp) + 8);
sprintf (var, "TMPDIR=%s", tmp);
_putenv (var);
_putenv (strdup (var));
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment