[client,common] fix TestClientRdpFile

This commit is contained in:
akallabeth
2025-09-01 09:07:13 +02:00
parent 343d270c5a
commit 142fa5b9ba

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 + 1ULL, sizeof(char));
json = calloc(1ULL + pos, sizeof(char));
if (!json)
goto fail;
if (fread(json, 1, pos, fp) != pos)