summaryrefslogtreecommitdiff
path: root/src/terminal
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal')
-rw-r--r--src/terminal/internal/fqterm_telnet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal/internal/fqterm_telnet.cpp b/src/terminal/internal/fqterm_telnet.cpp
index ba5d349..a561f1e 100644
--- a/src/terminal/internal/fqterm_telnet.cpp
+++ b/src/terminal/internal/fqterm_telnet.cpp
@@ -188,7 +188,7 @@ FQTermTelnet::FQTermTelnet(const QString &strTermType, int rows, int columns,
hostType_(hostType),
protocolType_(protocolType) {
term = new char[21];
- memset(term, 0, sizeof(term));
+ memset(term, 0, 21*sizeof(char));
// TODO: clean up, need???
#ifdef WIN32
_snprintf(term, sizeof(term), "%s", strTermType.toLatin1().constData());