mirror of
https://github.com/curl/curl.git
synced 2026-07-26 07:17:16 +03:00
darwinssi: fix error: variable length array used
This commit is contained in:
parent
b5cc7dd360
commit
75536e529a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue