darwinssi: fix error: variable length array used

This commit is contained in:
Daniel Stenberg 2017-08-16 07:58:44 +02:00
parent b5cc7dd360
commit 75536e529a
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View File

@ -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)