dtsession/SmGlobals: use of tainted string (CID 89450)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user