From 17f539765264b1f1be63447a871fe7117173a2dd Mon Sep 17 00:00:00 2001 From: jgromes Date: Thu, 15 Apr 2021 08:13:16 +0200 Subject: [PATCH] [RTTY] Fixed code scan alert --- src/protocols/RTTY/RTTY.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/RTTY/RTTY.cpp b/src/protocols/RTTY/RTTY.cpp index 5ee05efc..f256e54b 100644 --- a/src/protocols/RTTY/RTTY.cpp +++ b/src/protocols/RTTY/RTTY.cpp @@ -10,7 +10,7 @@ ITA2String::ITA2String(char c) { ITA2String::ITA2String(const char* str) { _len = strlen(str); - _str = new char[_len]; + _str = new char[_len + 1]; strcpy(_str, str); _ita2Len = 0; }