libDtSearch: Coverity 86804

This commit is contained in:
Peter Howkins
2018-07-02 22:59:03 +01:00
parent d7225fde79
commit c8233c9200

View File

@@ -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)