fix some CodeQL warnings

This commit is contained in:
Philippe Teuwen 2022-02-16 20:28:38 +01:00
parent 8082cbbdcb
commit 623169fe02
15 changed files with 25 additions and 27 deletions

View file

@ -1645,7 +1645,7 @@ static int filelist(const char *path, const char *ext, uint8_t last, bool tentat
PrintAndLogEx(NORMAL, "%s── "_GREEN_("%s"), last ? "" : "", &path[strip]);
for (uint16_t i = 0; i < n; i++) {
for (int i = 0; i < n; i++) {
char tmp_fullpath[1024] = {0};
strncat(tmp_fullpath, path, sizeof(tmp_fullpath) - 1);