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; }