libDtSearch: Coverity 86768
authorPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 21:53:49 +0000 (22:53 +0100)
committerPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 21:53:49 +0000 (22:53 +0100)
cde/lib/DtSearch/raima/renfile.c

index d6f75bae5a85a65e66a1282cecb37a673ccf0933..de3de2ef7a578e5a6d73a9c9621e1c69092a6ffe 100644 (file)
@@ -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;
            }