@@ -26,7 +26,7 @@ static UA_ByteString loadCertificate(void) {
fseek(fp, 0, SEEK_END);
certificate.length = (size_t)ftell(fp);
- certificate.data = UA_malloc(certificate.length*sizeof(UA_Byte));
+ certificate.data = (UA_Byte *)UA_malloc(certificate.length*sizeof(UA_Byte));
if(!certificate.data)
return certificate;