gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 14/256: darwinssi: fix error: variable length array


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 14/256: darwinssi: fix error: variable length array used
Date: Fri, 06 Oct 2017 19:41:45 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 75536e529abf799995b75610a75e85b891fdf8e7
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Aug 16 07:58:44 2017 +0200

    darwinssi: fix error: variable length array used
---
 lib/vtls/darwinssl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]