shithub: drawterm

Download patch

ref: 7ac6345a64f3b32ed61519cd15a81d1faf7d379f
parent: 2edf616443b7bfdb0d97c4f9a11c45747ed9ab25
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Dec 29 14:05:01 EST 2017

libsec: get rid of dummy data[1] in Bytes and Ints types (thanks pr)

--- a/libsec/tlshand.c	Thu Dec 28 13:24:25 2017
+++ b/libsec/tlshand.c	Fri Dec 29 14:05:01 2017
@@ -26,12 +26,12 @@
 
 typedef struct Bytes{
 	int len;
-	uchar data[1];  // [len]
+	uchar data[];
 } Bytes;
 
 typedef struct Ints{
 	int len;
-	int data[1];  // [len]
+	int data[];
 } Ints;
 
 typedef struct Algs{
--- a/libsec/x509.c	Thu Dec 28 13:24:25 2017
+++ b/libsec/x509.c	Fri Dec 29 14:05:01 2017
@@ -53,7 +53,7 @@
 
 struct Bytes {
 	int	len;
-	uchar	data[1];
+	uchar	data[];
 };
 
 struct Ints {