From 539f33a3c9455f20e25d8e4b3adb85b1548d264e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 9 Sep 2020 12:30:09 +0200 Subject: [PATCH] warning gcc10.2 (@mwalker33) --- client/src/fileutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/fileutils.c b/client/src/fileutils.c index d70fe508d..be6cab977 100644 --- a/client/src/fileutils.c +++ b/client/src/fileutils.c @@ -1482,6 +1482,7 @@ static int filelist(const char *path, const char *ext, uint8_t last, bool tentat 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); if (is_directory(tmp_fullpath)) {