ref: 7ac6345a64f3b32ed61519cd15a81d1faf7d379f
parent: 2edf616443b7bfdb0d97c4f9a11c45747ed9ab25
author: cinap_lenrek <[email protected]>
date: Fri Dec 29 15:05:01 EST 2017
libsec: get rid of dummy data[1] in Bytes and Ints types (thanks pr)
--- a/libsec/tlshand.c
+++ b/libsec/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/libsec/x509.c
+++ b/libsec/x509.c
@@ -53,7 +53,7 @@
struct Bytes {
int len;
- uchar data[1];
+ uchar data[];
};
struct Ints {