mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtscreen: Coverity (memory corruption, moderate)
This commit is contained in:
parent
a5c7512782
commit
055d98cafb
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue