From 5854fdca3835142a74bc3134dd24714073d29d06 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 2 Jul 2018 22:53:49 +0100 Subject: [PATCH] libDtSearch: Coverity 86768 --- cde/lib/DtSearch/raima/renfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/lib/DtSearch/raima/renfile.c b/cde/lib/DtSearch/raima/renfile.c index d6f75bae..de3de2ef 100644 --- a/cde/lib/DtSearch/raima/renfile.c +++ b/cde/lib/DtSearch/raima/renfile.c @@ -110,7 +110,7 @@ renfiles(void) ll_deaccess(&ren_list); return( dberr(S_RENAME) ); } - strcpy(file_table[NUM2INT(rp->ptr->file_no, ft_offset)].ft_name, + snprintf(file_table[NUM2INT(rp->ptr->file_no, ft_offset)].ft_name, FILENMLEN, "%s", rp->ptr->File_name.ptr); break; } -- 2.25.1