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) ;