From a282ab690d62bacc8a667fde7e933aebfe247d00 Mon Sep 17 00:00:00 2001
From: kristof <Kristof.Szabados@ericsson.com>
Date: Sun, 19 Mar 2017 15:40:30 +0100
Subject: [PATCH] the size of this array can be fixed

Signed-off-by: kristof <Kristof.Szabados@ericsson.com>
---
 compiler2/ttcn3/BerAST.cc | 4 ++--
 compiler2/ttcn3/BerAST.hh | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/compiler2/ttcn3/BerAST.cc b/compiler2/ttcn3/BerAST.cc
index b78d6a0cb..68c5a8726 100644
--- a/compiler2/ttcn3/BerAST.cc
+++ b/compiler2/ttcn3/BerAST.cc
@@ -12,12 +12,12 @@
  ******************************************************************************/
 #include  "BerAST.hh"
 
-const char* BerAST::encode_string[] = {
+const char* BerAST::encode_string[2] = {
     "BER_ENCODE_CER",
     "BER_ENCODE_DER"
 };
 
-const char* BerAST::decode_string[] = {
+const char* BerAST::decode_string[5] = {
     "BER_ACCEPT_SHORT",
     "BER_ACCEPT_LONG",
     "BER_ACCEPT_INDEFINITE",
diff --git a/compiler2/ttcn3/BerAST.hh b/compiler2/ttcn3/BerAST.hh
index c4fb2b9f2..154730db4 100644
--- a/compiler2/ttcn3/BerAST.hh
+++ b/compiler2/ttcn3/BerAST.hh
@@ -16,8 +16,8 @@
 
 
 class BerAST {
-  static const char* encode_string[];
-  static const char* decode_string[];
+  static const char* encode_string[2];
+  static const char* decode_string[5];
 public:
 
   enum ber_encode_t {
-- 
GitLab