From c9bee6d3b8267261d35a3e6b79b02c8e764304a9 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 5 Nov 2023 15:38:21 +0100 Subject: [PATCH] pointer to buffer. Zero sized array not allowed when pedantic --- client/src/emv/tlv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/emv/tlv.h b/client/src/emv/tlv.h index 39f1bcacd..2582066a9 100644 --- a/client/src/emv/tlv.h +++ b/client/src/emv/tlv.h @@ -22,6 +22,7 @@ #define TLV_H #include "common.h" +#include typedef uint32_t tlv_tag_t; @@ -41,7 +42,7 @@ struct tlvdb { struct tlvdb_root { struct tlvdb db; size_t len; - unsigned char buf[0]; + unsigned char buf[]; }; typedef void (*tlv_cb)(void *data, const struct tlv *tlv, int level, bool is_leaf);