fix clang-tidy warnings

This commit is contained in:
Armin Novak
2025-08-20 11:28:09 +02:00
parent a6302d6852
commit 4fadd12047
2 changed files with 13 additions and 3 deletions

View File

@@ -288,7 +288,7 @@ static void* read_rdp_data(const char* name, size_t* plen)
if (fseek(fp, 0, SEEK_SET) != 0)
goto fail;
json = calloc(pos + 1, sizeof(char));
json = calloc(pos + 1ULL, sizeof(char));
if (!json)
goto fail;
if (fread(json, 1, pos, fp) != pos)