mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtsession/SmGlobals: use of tainted string (CID 89450)
This commit is contained in:
parent
1bde7d8c5c
commit
4b38955b01
1 changed files with 1 additions and 1 deletions
|
@ -684,7 +684,7 @@ SetRestorePath(
|
||||||
*/
|
*/
|
||||||
if (getenv("DISPLAY") == 0)
|
if (getenv("DISPLAY") == 0)
|
||||||
{
|
{
|
||||||
sprintf(tmpDisplayName, "DISPLAY=%s", displayName);
|
snprintf(tmpDisplayName, MAXPATHLEN, "DISPLAY=%s", displayName);
|
||||||
putenv(tmpDisplayName);
|
putenv(tmpDisplayName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue