mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 15:50:48 -04:00
darwinssi: fix error: variable length array used
This commit is contained in:
parent
b5cc7dd360
commit
75536e529a
@ -1797,7 +1797,7 @@ static int read_cert(const char *file, unsigned char **out, size_t *outlen)
|
|||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
ssize_t n, len = 0, cap = 512;
|
ssize_t n, len = 0, cap = 512;
|
||||||
unsigned char buf[cap], *data;
|
unsigned char buf[512], *data;
|
||||||
|
|
||||||
fd = open(file, 0);
|
fd = open(file, 0);
|
||||||
if(fd < 0)
|
if(fd < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user