mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-10 17:49:32 +08:00
fix coverity 298566
This commit is contained in:
parent
2be85939f7
commit
0f94fa5a54
1 changed files with 2 additions and 2 deletions
|
@ -1465,8 +1465,8 @@ static int filelist(const char *path, const char *ext, uint8_t last, bool tentat
|
|||
for (uint16_t i = 0; i < n; i++) {
|
||||
|
||||
char tmp_fullpath[1024] = {0};
|
||||
strcat(tmp_fullpath, path);
|
||||
strcat(tmp_fullpath, namelist[i]->d_name);
|
||||
strncat(tmp_fullpath, path, sizeof(tmp_fullpath) - 1);
|
||||
strncat(tmp_fullpath, namelist[i]->d_name, strlen(tmp_fullpath) - 1);
|
||||
|
||||
if (is_directory(tmp_fullpath)) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue