mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
libDtSearch: Coverity 86856
This commit is contained in:
parent
c8233c9200
commit
0876476cae
1 changed files with 1 additions and 2 deletions
|
@ -182,8 +182,7 @@ char *dbfpath /* one element from DBFPATH, or NULL for no path */
|
|||
}
|
||||
if (strlen(path_str) + strlen(dbfpath) >= FILENMLEN)
|
||||
return (db_status = S_NAMELEN);
|
||||
strcpy(filespec,dbfpath);
|
||||
strcat(filespec,remdrv(path_str));
|
||||
snprintf(filespec, sizeof(filespec), "%s%s", dbfpath, remdrv(path_str));
|
||||
strcpy(path_str,filespec);
|
||||
return (db_status = S_OKAY);
|
||||
|
||||
|
|
Loading…
Reference in a new issue