projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bde7d8
)
dtsession/SmGlobals: use of tainted string (CID 89450)
author
Jon Trulson
<jon@radscan.com>
Sat, 27 Dec 2014 23:12:45 +0000
(16:12 -0700)
committer
Jon Trulson
<jon@radscan.com>
Sat, 27 Dec 2014 23:12:45 +0000
(16:12 -0700)
cde/programs/dtsession/SmGlobals.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtsession/SmGlobals.c
b/cde/programs/dtsession/SmGlobals.c
index b7e538791fbc63ecf99bd67c81dc27683f02eaeb..16853ef92cef8d0f4c37a8687d309620babccdfd 100644
(file)
--- a/
cde/programs/dtsession/SmGlobals.c
+++ b/
cde/programs/dtsession/SmGlobals.c
@@
-684,7
+684,7
@@
SetRestorePath(
*/
if (getenv("DISPLAY") == 0)
{
- s
printf(tmpDisplayName
, "DISPLAY=%s", displayName);
+ s
nprintf(tmpDisplayName, MAXPATHLEN
, "DISPLAY=%s", displayName);
putenv(tmpDisplayName);
}
}