mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-07-15 14:38:52 +00:00
Fix -Werror=stringop-truncation build failure in fileutils.c
This commit is contained in:
@@ -3036,9 +3036,7 @@ static int filelist(const char *path, const char *ext, uint8_t last, bool tentat
|
||||
for (int i = 0; i < n; i++) {
|
||||
|
||||
char tmp_fullpath[1024] = {0};
|
||||
strncat(tmp_fullpath, path, sizeof(tmp_fullpath) - 1);
|
||||
tmp_fullpath[1023] = 0x00;
|
||||
strncat(tmp_fullpath, namelist[i]->d_name, strlen(tmp_fullpath) - 1);
|
||||
snprintf(tmp_fullpath, sizeof(tmp_fullpath), "%s%s", path, namelist[i]->d_name);
|
||||
|
||||
if (path_is_directory(tmp_fullpath)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user