git: 9front

Download patch

ref: 452802d4a6fdb9e2e02bbf94524ece952c15e12e
parent: 87996e33d271b43f80b43e53df43f2191df3bf1f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Dec 29 15:04:42 EST 2017

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

--- a/sys/src/libsec/port/tlshand.c
+++ b/sys/src/libsec/port/tlshand.c
@@ -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/sys/src/libsec/port/x509.c
+++ b/sys/src/libsec/port/x509.c
@@ -53,7 +53,7 @@
 
 struct Bytes {
 	int	len;
-	uchar	data[1];
+	uchar	data[];
 };
 
 struct Ints {
--