putenv w/ stack variable is wrong; must leak instead
This commit is contained in:
parent
3b78b50124
commit
610e4254ed
1 changed files with 1 additions and 1 deletions
|
|
@ -701,7 +701,7 @@ static void set_current_language(void)
|
||||||
if (loc)
|
if (loc)
|
||||||
{
|
{
|
||||||
snprintf(str, sizeof(str), "LANGUAGE=%s", loc);
|
snprintf(str, sizeof(str), "LANGUAGE=%s", loc);
|
||||||
putenv(str);
|
putenv(strdup(str));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue