From: Peter Howkins Date: Mon, 2 Jul 2018 21:53:49 +0000 (+0100) Subject: libDtSearch: Coverity 86768 X-Git-Tag: 2.3.0a~255 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5854fdca3835142a74bc3134dd24714073d29d06;p=oweals%2Fcde.git libDtSearch: Coverity 86768 --- 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; }