mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
wolfcrypt/src/wc_port.c: in wc_FileLoad(), use ssize_t for fileSz, not long int, for portability.
This commit is contained in:
@@ -488,7 +488,7 @@ int wc_FileLoad(const char* fname, unsigned char** buf, size_t* bufLen,
|
|||||||
void* heap)
|
void* heap)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
long int fileSz;
|
ssize_t fileSz;
|
||||||
XFILE f;
|
XFILE f;
|
||||||
|
|
||||||
if (fname == NULL || buf == NULL || bufLen == NULL) {
|
if (fname == NULL || buf == NULL || bufLen == NULL) {
|
||||||
|
Reference in New Issue
Block a user