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:
a5c7512
)
dtscreen: Coverity (memory corruption, moderate)
author
Jon Trulson
<jon@radscan.com>
Sat, 27 Dec 2014 00:17:58 +0000
(17:17 -0700)
committer
Jon Trulson
<jon@radscan.com>
Sat, 27 Dec 2014 00:17:58 +0000
(17:17 -0700)
cde/programs/dtscreen/resource.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtscreen/resource.c
b/cde/programs/dtscreen/resource.c
index 685207bd1b648a605f5ffebd19a8bcb07a2021f6..c48ef550498abea1b9834a05957622e7352b233c 100644
(file)
--- a/
cde/programs/dtscreen/resource.c
+++ b/
cde/programs/dtscreen/resource.c
@@
-623,9
+623,9
@@
GetResources(argc, argv)
if (!userpath) {
env = getenv("XAPPLRESDIR");
if (env)
-
sprintf(userfile
, "%s/%%N:%s/%%N", env, homeenv);
+
snprintf(userfile, 1024 - 1
, "%s/%%N:%s/%%N", env, homeenv);
else
-
sprintf(userfile
, "%s/%%N", homeenv);
+
snprintf(userfile, 1024 - 1
, "%s/%%N", homeenv);
userpath = userfile;
}
userDB = parsefilepath(userpath, "app-defaults", classname);