libDtSearch: Coverity 86856
This commit is contained in:
@@ -182,8 +182,7 @@ char *dbfpath /* one element from DBFPATH, or NULL for no path */
|
|||||||
}
|
}
|
||||||
if (strlen(path_str) + strlen(dbfpath) >= FILENMLEN)
|
if (strlen(path_str) + strlen(dbfpath) >= FILENMLEN)
|
||||||
return (db_status = S_NAMELEN);
|
return (db_status = S_NAMELEN);
|
||||||
strcpy(filespec,dbfpath);
|
snprintf(filespec, sizeof(filespec), "%s%s", dbfpath, remdrv(path_str));
|
||||||
strcat(filespec,remdrv(path_str));
|
|
||||||
strcpy(path_str,filespec);
|
strcpy(path_str,filespec);
|
||||||
return (db_status = S_OKAY);
|
return (db_status = S_OKAY);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user