From c8233c920001d44b1f685a83603c9c4c9f7ba200 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 2 Jul 2018 22:59:03 +0100 Subject: [PATCH] libDtSearch: Coverity 86804 --- cde/lib/DtSearch/dtsrve.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cde/lib/DtSearch/dtsrve.c b/cde/lib/DtSearch/dtsrve.c index 1f846eb0..e6711972 100644 --- a/cde/lib/DtSearch/dtsrve.c +++ b/cde/lib/DtSearch/dtsrve.c @@ -282,8 +282,7 @@ int ve_initialize (void) */ if (db->dbrec.or_fzkeysz > 0) { /* build complete path-file name */ - strcpy (d9x_fname, db->path); - strcat (d9x_fname, db->name); + snprintf(d9x_fname, sizeof(d9x_fname), "%s%s", db->path, db->name); d9x_fext = d9x_fname + strlen (d9x_fname); strcpy (d9x_fext, ".d97"); if (debugging) -- 2.25.1