forked from wolfSSL/wolfssl
Merge pull request #844 from SparkiDev/size_t-printf
32-bit size_t and printf fix
This commit is contained in:
@@ -1132,7 +1132,7 @@ static INLINE unsigned int my_psk_server_cb(WOLFSSL* ssl, const char* identity,
|
|||||||
*buf = (byte*)malloc(*bufLen);
|
*buf = (byte*)malloc(*bufLen);
|
||||||
if (*buf == NULL) {
|
if (*buf == NULL) {
|
||||||
ret = MEMORY_E;
|
ret = MEMORY_E;
|
||||||
printf("Error allocating %lu bytes\n", *bufLen);
|
printf("Error allocating %lu bytes\n", (unsigned long)*bufLen);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
size_t readLen = fread(*buf, *bufLen, 1, file);
|
size_t readLen = fread(*buf, *bufLen, 1, file);
|
||||||
|
Reference in New Issue
Block a user