ref: e3cad82680aaf115ff179637fa67f32ca606b6d1
parent: ce2211b08c95836a5216c90c903f25c31be9b216
author: cinap_lenrek <[email protected]>
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 {