mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcalc: Coverity (memory corruption, moderate)
This commit is contained in:
parent
ff3cd78ac0
commit
00540cb375
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ ds_load_resources(Display *display)
|
||||||
|
|
||||||
if ((ptr = getenv("DTCALCDEF")) == NULL)
|
if ((ptr = getenv("DTCALCDEF")) == NULL)
|
||||||
{
|
{
|
||||||
SPRINTF(name, "%s/.dtcalcdef", home) ;
|
snprintf(name, MAXPATHLEN - 1, "%s/.dtcalcdef", home) ;
|
||||||
db = XrmGetFileDatabase(name) ;
|
db = XrmGetFileDatabase(name) ;
|
||||||
}
|
}
|
||||||
else db = XrmGetFileDatabase(ptr) ;
|
else db = XrmGetFileDatabase(ptr) ;
|
||||||
|
|
Loading…
Reference in a new issue