aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-08-16 07:58:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-08-16 07:58:44 +0200
commit75536e529abf799995b75610a75e85b891fdf8e7 (patch)
tree70ca90f60ac7a2ec431075fc56b51f5bb8721e85 /lib/vtls
parentb5cc7dd360c983875a451bd29ab9e68db78624c0 (diff)
darwinssi: fix error: variable length array used
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/darwinssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c
index 6f9c6012e..18751ca49 100644
--- a/lib/vtls/darwinssl.c
+++ b/lib/vtls/darwinssl.c
@@ -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)