cast malloc result

pull/529/head
Brett Nicholas 2024-12-09 16:03:50 -07:00 committed by Daniele Lacamera
parent 0d18b25a2e
commit 638787e296
1 changed files with 1 additions and 1 deletions

View File

@ -1109,7 +1109,7 @@ static void keygen_ml_dsa(const char *priv_fname, uint32_t id_mask)
exit(1);
break;
}
pubDer = malloc(pubDerSz);
pubDer = (uint8_t*)malloc(pubDerSz);
if (pubDer == NULL) {
fprintf(stderr,
"Error: Failed to allocate memory for DER export\n");