1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

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) { if (db->dbrec.or_fzkeysz > 0) {
/* build complete path-file name */ /* build complete path-file name */
strcpy (d9x_fname, db->path); snprintf(d9x_fname, sizeof(d9x_fname), "%s%s", db->path, db->name);
strcat (d9x_fname, db->name);
d9x_fext = d9x_fname + strlen (d9x_fname); d9x_fext = d9x_fname + strlen (d9x_fname);
strcpy (d9x_fext, ".d97"); strcpy (d9x_fext, ".d97");
if (debugging) if (debugging)