From 889650ea45f3194c1a8681243e9319f6cc090b9b Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 2 Jul 2018 23:07:39 +0100 Subject: [PATCH] libDtSearch: Coverity 86944 --- cde/lib/DtSearch/dtsrapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/lib/DtSearch/dtsrapi.c b/cde/lib/DtSearch/dtsrapi.c index 1d65f710..e9be4604 100644 --- a/cde/lib/DtSearch/dtsrapi.c +++ b/cde/lib/DtSearch/dtsrapi.c @@ -826,7 +826,7 @@ int DtSearchHighlight ( usrblk.stemcount = stemcount; cptr = stems; for (i = 0; i < stemcount; i++) { - strcpy (usrblk.stems[i], cptr); + snprintf(usrblk.stems[i], sizeof(usrblk.stems[i]), "%s", cptr); cptr += DtSrMAXWIDTH_HWORD; } } -- 2.25.1