Browse Source

Update server_certificate.c

StalderT 7 years ago
parent
commit
32725bdada
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/server_certificate.c

+ 1 - 1
examples/server_certificate.c

@@ -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;