summaryrefslogtreecommitdiff
path: root/src/terminal
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2014-06-21 12:02:16 +0800
committerIru Cai <mytbk920423@gmail.com>2014-06-21 12:02:16 +0800
commit74383624ec49680fa1f24294c2707ca7e0c38ba4 (patch)
treef815bdf010457326162dd03bd9be10693532742a /src/terminal
parentebdbc9e84fe19a0bc82c59f7818952caebd80254 (diff)
downloadfqterm-74383624ec49680fa1f24294c2707ca7e0c38ba4.tar.xz
Silence some warnings
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());