mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
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);
|
||||
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);
|
||||
|
Reference in New Issue
Block a user