Merge pull request #844 from SparkiDev/size_t-printf

32-bit size_t and printf fix
This commit is contained in:
toddouska
2017-04-12 13:54:52 -07:00
committed by GitHub

View File

@ -1132,7 +1132,7 @@ static INLINE unsigned int my_psk_server_cb(WOLFSSL* ssl, const char* identity,
*buf = (byte*)malloc(*bufLen);
if (*buf == NULL) {
ret = MEMORY_E;
printf("Error allocating %lu bytes\n", *bufLen);
printf("Error allocating %lu bytes\n", (unsigned long)*bufLen);
}
else {
size_t readLen = fread(*buf, *bufLen, 1, file);