From 00540cb375754c9006d31792724946495a30f755 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Fri, 26 Dec 2014 16:19:23 -0700 Subject: [PATCH] dtcalc: Coverity (memory corruption, moderate) --- cde/programs/dtcalc/ds_xlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtcalc/ds_xlib.c b/cde/programs/dtcalc/ds_xlib.c index d01238bb..76261907 100644 --- a/cde/programs/dtcalc/ds_xlib.c +++ b/cde/programs/dtcalc/ds_xlib.c @@ -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) ; -- 2.25.1