mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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;
|
||||
ssize_t n, len = 0, cap = 512;
|
||||
unsigned char buf[cap], *data;
|
||||
unsigned char buf[512], *data;
|
||||
|
||||
fd = open(file, 0);
|
||||
if(fd < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user