1
0
Fork 0
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:
Jon Trulson 2014-12-26 16:19:23 -07:00
parent ff3cd78ac0
commit 00540cb375

View file

@ -178,7 +178,7 @@ ds_load_resources(Display *display)
if ((ptr = getenv("DTCALCDEF")) == NULL)
{
SPRINTF(name, "%s/.dtcalcdef", home) ;
snprintf(name, MAXPATHLEN - 1, "%s/.dtcalcdef", home) ;
db = XrmGetFileDatabase(name) ;
}
else db = XrmGetFileDatabase(ptr) ;